Bug #54539 [Opn->Asn]: quotemeta('') returns false
| From: | aharvey@php.net | Date: | Tue, 19 Apr 2011 06:18:46 +0000 |
| Subject: | Bug #54539 [Opn->Asn]: quotemeta('') returns false | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-6256@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54539&edit=1
ID: 54539
Updated by: aharvey@php.net
Reported by: theitzamna at gmail dot com
Summary: quotemeta('') returns false
-Status: Open
+Status: Assigned
Type: Bug
-Package: *General Issues
+Package: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
It's bizarre and inconsistent with pretty much every other escaping
function, but looking at SVN, it's also been that way for eleven and a
bit years. Rather than break backward compatibility, I'll add a note to
the manual.
Previous Comments:
------------------------------------------------------------------------
[2011-04-15 14:26:13] theitzamna at gmail dot com
Description:
------------
http://php.net/manual/en/function.quotemeta.php
This document states:
>>Return Values
>>Returns the string with meta characters quoted.
but if an empty string is passed to quotemeta() as an argument a
boolean(false)
is being returned.
Test script:
---------------
<?php
var_dump(quotemeta(""));
?>
Return result for php 5.2.6 and 5.3.5 (MacOS X, Windows, FreeBSD,
Ubuntu):
>>bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54539&edit=1