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

From: Date: Tue, 26 Nov 2013 13:42:31 +0000
Subject: Bug #66176 [Opn->Asn]: Invalid constant substitution
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182940@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: Open +Status: Assigned Type: Bug Package: opcache Operating System: * PHP Version: 5.5Git-2013-11-26 (Git) -Assigned To: +Assigned To: dmitry Block user comment: N Private report: N 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 (#182940) next »