PHP :: Bug #66176 :: Invalid constant substitution

 [2013-11-26 13:42 UTC] dmitry@php.net

Description:
------------
the following code doesn't work properly

Test script:
---------------
<?php
function foo($v) {
	global $a;
	return $a[$v];
}
$a = array(PHP_VERSION => 1);
var_dump(foo(PHP_VERSION));


Expected result:
----------------
int(1)

Actual result:
--------------
NULL

 [2013-11-26 13:42 UTC] dmitry@php.net

-Status: Open +Status: Assigned -Assigned To: +Assigned To: dmitry

 [2013-11-26 13:49 UTC] dmitry@php.net

Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d85ac7fb3f498455cfc1b051f8d48c9ba8ed8fdd
Log: Fixed bug #66176 (Invalid constant substitution)

 [2013-11-26 13:49 UTC] dmitry@php.net

-Status: Assigned +Status: Closed

 [2013-11-26 17:45 UTC] dmitry@php.net

Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d79dd9cc1cab03aecf6d3f6ec243bc15aa353234
Log: Fixed bug #66176 (Invalid constant substitution)

 [2013-11-26 17:45 UTC] dmitry@php.net

Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=27524b52b5c051c61d8197142b29a8aafefc82bd
Log: Fixed bug #66176 (Invalid constant substitution)

 [2013-11-26 18:22 UTC] ab@php.net

Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d79dd9cc1cab03aecf6d3f6ec243bc15aa353234
Log: Fixed bug #66176 (Invalid constant substitution)

 [2013-11-26 18:22 UTC] ab@php.net

Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=27524b52b5c051c61d8197142b29a8aafefc82bd
Log: Fixed bug #66176 (Invalid constant substitution)

 [2013-11-26 18:22 UTC] ab@php.net

Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=d85ac7fb3f498455cfc1b051f8d48c9ba8ed8fdd
Log: Fixed bug #66176 (Invalid constant substitution)