Bug #66176 [Asn->Csd]: Invalid constant substitution

From: Date: Tue, 26 Nov 2013 13:49:52 +0000
Subject: Bug #66176 [Asn->Csd]: Invalid constant substitution
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182941@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66176&edit=1 ID: 66176 Updated by: dmitry@php.net Reported by: dmitry@php.net Summary: Invalid constant substitution -Status: Assigned +Status: Closed Type: Bug Package: opcache Operating System: * PHP Version: 5.5Git-2013-11-26 (Git) Assigned To: dmitry Block user comment: N Private report: N New Comment: 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) Previous Comments: ------------------------------------------------------------------------ [2013-11-26 13:42:13] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66176&edit=1

« previous php.bugs (#182941) next »