php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #52999 categorize parameter behaved incorrectly prior to 5.2.11
Submitted: 2010-10-06 04:45 UTC Modified: 2010-10-06 12:56 UTC
From: anthon dot pang at gmail dot com Assigned: rquadling (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: anthon dot pang at gmail dot com
New email:
PHP Version: OS:

 

 [2010-10-06 04:45 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-06 04:46 UTC] 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 12:47 UTC] rquadling@php.net
-Assigned To: +Assigned To: rquadling
 [2010-10-06 12:47 UTC] 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 12:56 UTC] 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:56 UTC] rquadling@php.net
-Status: Assigned +Status: Closed
 [2010-10-06 12:56 UTC] rquadling@php.net
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.
 [2020-02-07 06:09 UTC] phpdocbot@php.net
Automatic comment on behalf of rquadling
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=67de41e11a6ecabb83ca813013dedafd6eef0d42
Log: Added initializer. Added V5.2.11 changelog to show different behaviour of $categorize. Fix bug #52999
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 20:00:02 2026 UTC