Note that shell_exec() also returns NULL when the executed command produces no output. Fixes bug #65925.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331914 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Chris Wright 2013-10-22 12:04:24 +00:00
parent d6da6ad11e
commit 2031791c7d

View file

@ -38,8 +38,17 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
The output from the executed command or &null; if an error occurred.
The output from the executed command or &null; if an error occurred or the
command produces no output.
</para>
<note>
<para>
This function can return &null; both when an error occurs or the program
produces no output. It is not possible to detect execution failures using
this function. <function>exec</function> should be used when access to the
program exit code is required.
</para>
</note>
</refsect1>
<refsect1 role="examples">