mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
728b7a9bc0
commit
d54819610d
1 changed files with 15 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue