Skip to content

Commit cb98f11

Browse files
committed
Remove dead code in exec.xml example
1 parent 3c48a7f commit cb98f11

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

reference/exec/functions/exec.xml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,8 @@
125125
<?php
126126
// outputs the username that owns the running php/httpd process
127127
// (on a system with the "whoami" executable in the path)
128-
$output=null;
129-
$retval=null;
130-
exec('whoami', $output, $retval);
131-
echo "Returned with status $retval and output:\n";
128+
exec('whoami', $output, $result_code);
129+
echo "Returned with status $result_code and output:\n";
132130
print_r($output);
133131
?>
134132
]]>

0 commit comments

Comments
 (0)