Fix #80230: Doc for exec specifies & (reference) param, fails

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351975 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2020-12-09 15:46:49 +00:00
parent 728b7a9bc0
commit d54819610d

View file

@ -86,10 +86,24 @@
<?php
// outputs the username that owns the running php/httpd process
// (on a system with the "whoami" executable in the path)
echo exec('whoami');
$output=null;
$retval=null;
exec('whoami', $output, $retval);
echo "Returned with status $retval and output:\n";
print_r($output);
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
Returned with status 0 and output:
Array
(
[0] => cmb
)
]]>
</screen>
</example>
</para>
</refsect1>