php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #66176 Invalid constant substitution
Submitted: 2013-11-26 13:42 UTC Modified: 2013-11-26 13:42 UTC
From: dmitry@php.net Assigned: dmitry (profile)
Status: Closed Package: opcache
PHP Version: 5.5Git-2013-11-26 (Git) OS: *
Private report: No CVE-ID: None
 [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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [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)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 05:01:29 2024 UTC