1--TEST-- 2Keep BIND_STATIC when initial value refer to unresolved constants 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.optimization_level=-1 7--SKIPIF-- 8<?php require_once('skipif.inc'); ?> 9--FILE-- 10<?php 11function foo() { 12 static $a = UNDEFINED_CONST; 13} 14foo(); 15?> 16OK 17--EXPECTF-- 18Warning: Use of undefined constant UNDEFINED_CONST - assumed 'UNDEFINED_CONST' (this will throw an Error in a future version of PHP) in %s on line %d 19OK