[DOC-CVS] [doc-en] master: Remove dead code in exec.xml example (#5705)
[email protected] (Kamil Tekiela via GitHub) Fri, 24 Jul 2026 17:19:45 +0000
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Kamil Tekiela (kamil-tekiela)
Committer: GitHub (web-flow)
Pusher: kamil-tekiela
Date: 2026-07-24T18:19:43+01:00
Commit: https://github.com/php/doc-en/commit/462dddda87baa86fd760dcb1e3a0d2096e00a59b
Raw diff: https://github.com/php/doc-en/commit/462dddda87baa86fd760dcb1e3a0d2096e00a59b.diff
Remove dead code in exec.xml example (#5705)
Changed paths:
M reference/exec/functions/exec.xml
Diff:
diff --git a/reference/exec/functions/exec.xml b/reference/exec/functions/exec.xml
index 328d1fde4501..57c5374f1233 100644
--- a/reference/exec/functions/exec.xml
+++ b/reference/exec/functions/exec.xml
@@ -125,10 +125,8 @@
<?php
// outputs the username that owns the running php/httpd process
// (on a system with the "whoami" executable in the path)
-$output=null;
-$retval=null;
-exec('whoami', $output, $retval);
-echo "Returned with status $retval and output:\n";
+exec('whoami', $output, $result_code);
+echo "Returned with status $result_code and output:\n";
print_r($output);
?>
]]>