note 43295 added to function.exec
| From: | nspurrier at rockstar dot com | Date: | Thu, 17 Jun 2004 00:28:53 +0000 |
| Subject: | note 43295 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71172@lists.php.net to get a copy of this message | ||
It is not clear what happens when the command cannot be executed.
Sometimes $return_var gets set to 126 and other times it gets set to 127.
It appears that if the command cannot be found then 127 is put in
$return_var. If the command cannot be executed (in my case due to
a missing library) then 126 is put in $return_var. In either case exec will
return an empty string and not output an error message. Also $output is
an empty array. I'm not sure if this is an undocumented feature or a bug.
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43295
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43295&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43295&report=yes
Search -- http://master.php.net/manage/user-notes.php