xref: /php-src/ext/opcache/tests/bug66176.phpt (revision e9f783fc)
1--TEST--
2Bug #66176 (Invalid constant substitution)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7opcache.file_update_protection=0
8--EXTENSIONS--
9opcache
10--FILE--
11<?php
12function foo($v) {
13    global $a;
14    return $a[$v];
15}
16$a = array(PHP_VERSION => 1);
17var_dump(foo(PHP_VERSION));
18?>
19--EXPECT--
20int(1)
21