#43533 [Opn->Csd]: escapeshellarg('') returns null
| From: | iliaa@php.net | Date: | Sun, 09 Dec 2007 16:37:08 +0000 |
| Subject: | #43533 [Opn->Csd]: escapeshellarg('') returns null | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120497@lists.php.net to get a copy of this message | ||
ID: 43533
Updated by: iliaa@php.net
Reported By: josephk at etelos dot com
-Status: Open
+Status: Closed
Bug Type: *Directory/Filesystem functions
Operating System: Cent OS 5
PHP Version: 5.2.5
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2007-12-09 04:30:59] crrodriguez at suse dot de
5_2 returns NULL (wrong value) , for some reason 5_3 is right.
------------------------------------------------------------------------
[2007-12-08 10:59:06] felipe@php.net
In PHP 5.3.0-dev (cli) (built: Dec 7 2007 22:22:09) it shows:
string(2) "''"
------------------------------------------------------------------------
[2007-12-08 02:58:26] josephk at etelos dot com
Description:
------------
escapeshellarg() returns null when passed an empty string instead of
returning an empty string. The documentation doesn't say anything about
giving a return value of null.
Reproduce code:
---------------
<?php
var_dump(escapeshellarg(''));
?>
Expected result:
----------------
string ''
Actual result:
--------------
null
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43533&edit=1