xref: /PHP-7.0/ext/opcache/tests/bug66176.phpt (revision d85ac7fb)
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--SKIPIF--
9<?php require_once('skipif.inc'); ?>
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--EXPECT--
19int(1)
20