ID: 43533
Updated by: [EMAIL PROTECTED]
Reported By: josephk at etelos dot com
Status: Open
Bug Type: *Directory/Filesystem functions
Operating System: Cent OS 5
PHP Version: 5.2.5
New Comment:
In PHP 5.3.0-dev (cli) (built: Dec 7 2007 22:22:09) it shows:
string(2) "''"
Previous Comments:
------------------------------------------------------------------------
[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