PHP :: Bug #43533 :: escapeshellarg('') returns null
| Bug #43533 | escapeshellarg('') returns null | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2007-12-08 02:58 UTC | Modified: | 2007-12-09 16:37 UTC |
|
||||||
| From: | josephk at etelos dot com | Assigned: | ||||||||
| Status: | Closed | Package: | *Directory/Filesystem functions | |||||||
| PHP Version: | 5.2.5 | OS: | Cent OS 5 | |||||||
| Private report: | No | CVE-ID: | None | |||||||
[2007-12-08 02:58 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2007-12-08 10:59 UTC] felipe@php.net
[2007-12-09 04:30 UTC] crrodriguez at suse dot de
[2007-12-09 16:37 UTC] iliaa@php.net