#49923 [Tbd->Csd]: get_defined_constants() BC break
| From: | vrana@php.net | Date: | Wed, 25 Nov 2009 10:10:15 +0000 |
| Subject: | #49923 [Tbd->Csd]: get_defined_constants() BC break | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3337@lists.php.net to get a copy of this message | ||
ID: 49923
Updated by: vrana@php.net
Reported By: philip@php.net
-Status: To be documented
+Status: Closed
Bug Type: Documentation problem
Operating System: Mac OS X 10.6
PHP Version: 5.3SVN-2009-10-19 (snap)
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:
------------------------------------------------------------------------
[2009-11-25 10:10:13] svn@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=291297
Log: Core constants (bug #49923)
------------------------------------------------------------------------
[2009-11-11 14:26:45] jani@php.net
It's out already -> document it.
------------------------------------------------------------------------
[2009-10-19 16:44:00] philip@php.net
Description:
------------
I expected 'internal' and not 'Core' to be the index for internal core
constants. This apparently changed in PHP 5.3.0, yet is not in NEWS or
documented. Please clarify the situation, as this may have been an
unintentional change and BC break.
Related: PHP bug #49223
Reproduce code:
---------------
<?php
$constants = get_defined_constants(true);
if (isset($constants['Core'])) {
echo 'Key "Core" exists, PHP version: ' . PHP_VERSION;
}
if (isset($constants['internal'])) {
echo 'Key "internal" exists, PHP version: ' . PHP_VERSION;
}
Expected result:
----------------
Key "internal" exists, PHP version: 5.3.2-dev
Key "internal" exists, PHP version: 5.2.8
Actual result:
--------------
Key "Core" exists, PHP version: 5.3.2-dev
Key "internal" exists, PHP version: 5.2.8
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49923&edit=1