PHP 4.0 Bug #9043: popen returns a 'Resource id #' (non null) when process cannot be created.
| From: | sah at uow dot edu dot au | Date: | Thu, 01 Feb 2001 05:16:31 +0000 |
| Subject: | PHP 4.0 Bug #9043: popen returns a 'Resource id #' (non null) when process cannot be created. | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45497@lists.php.net to get a copy of this message | ||
From: sah@uow.edu.au
Operating system: Solaris 8
PHP version: 4.0.3pl1
PHP Bug Type: *Directory/Filesystem functions
Bug description: popen returns a 'Resource id #' (non null) when process cannot be
created.
<?
$cp = popen('/bin/I_DO_NOT_EXIST', 'w');
echo "Result is $cp<br>\n";
?>
Returns the following:
Result is Resource id #1
--
Edit Bug report at: http://bugs.php.net/?id=9043&edit=1