Doc #52999 [Asn->Csd]: categorize parameter behaved incorrectly prior to 5.2.11
| From: | rquadling@php.net | Date: | Wed, 06 Oct 2010 10:56:09 +0000 |
| Subject: | Doc #52999 [Asn->Csd]: categorize parameter behaved incorrectly prior to 5.2.11 | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5172@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52999&edit=1
ID: 52999
Updated by: rquadling@php.net
Reported by: anthon dot pang at gmail dot com
Summary: categorize parameter behaved incorrectly prior to
5.2.11
-Status: Assigned
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Assigned To: rquadling
Block user comment: N
New Comment:
This bug has been fixed in SVN.
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:
------------------------------------------------------------------------
[2010-10-06 12:56:03] rquadling@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&revision=304142
Log: Added initializer.
Added V5.2.11 changelog to show different behaviour of $categorize.
Fix bug #52999
------------------------------------------------------------------------
[2010-10-06 12:47:49] rquadling@php.net
I can confirm that prior too V5.2.11RC1, the categorize parameter was
interpreted
as !isnull($categorize).
Supplying, true, false, '', 'somejunk', 'xml' would all be interpreted
as true.
------------------------------------------------------------------------
[2010-10-06 04:46:16] anthon dot pang at gmail dot com
Sorry, forgot to add that this is for the online documentation page:
http://php.net/get_defined_constants
------------------------------------------------------------------------
[2010-10-06 04:45:00] anthon dot pang at gmail dot com
Description:
------------
Prior to php 5.2.11 (at least as far back as 5.1.3, which is the oldest
version I have available for regression testing), if the categorize
parameter was specified, it would always return categorized results,
even if categorize=false. (Reference: http://bugs.php.net/48629)
Proposed Changelog entry:
Version Description
5.2.11 get_defined_constants(categorize=false) now works as expected
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52999&edit=1