mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
18 lines
453 B
PHP
18 lines
453 B
PHP
--TEST--
|
|
Bug #66251 (Constants get statically bound at compile time when Optimized)
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('Zend OPcache') || php_sapi_name() != "cli") die("skip CLI only"); ?>
|
|
--FILE--
|
|
<?php
|
|
printf ("A=%s\n", getA());
|
|
const A="hello";
|
|
function getA() {return A;}
|
|
?>
|
|
--EXPECTF--
|
|
Notice: Use of undefined constant A - assumed 'A' in %sbug66251.php on line 4
|
|
A=A
|