Bug->Doc #54539 [Asn->Csd]: quotemeta('') returns false

From: Date: Tue, 19 Apr 2011 06:21:35 +0000
Subject: Bug->Doc #54539 [Asn->Csd]: quotemeta('') returns false
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6257@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: Assigned +Status: Closed -Type: Bug +Type: Documentation Problem Package: Documentation problem Operating System: Irrelevant PHP Version: Irrelevant Assigned To: aharvey Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2011-04-19 08:21:17] aharvey@php.net Automatic comment from SVN on behalf of aharvey Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=310344 Log: Update the return value section of quotemeta() to fix doc bug #54539 (quotemeta('') returns false). ------------------------------------------------------------------------ [2011-04-19 08:18:42] aharvey@php.net 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. ------------------------------------------------------------------------ [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

« previous php.doc.bugs (#6257) next »