mirror of
https://github.com/php/php-src.git
synced 2026-04-22 07:28:09 +02:00
d6f86caa11
GCC complained about potentially uninitialized __orig_bailout, even though the variable has an initializer. This warning was quite persistent, I was only able to avoid it by using a separate function. Am I missing something?
18 lines
473 B
PHP
18 lines
473 B
PHP
--TEST--
|
|
Preloading class with undefined class constant access
|
|
--INI--
|
|
opcache.enable=1
|
|
opcache.enable_cli=1
|
|
opcache.optimization_level=-1
|
|
opcache.preload={PWD}/preload_undef_const.inc
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(class_exists('Foo'));
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Undefined class constant 'self::DOES_NOT_EXIST' in Unknown on line 0
|
|
|
|
Fatal error: Failed to resolve initializers of class Foo during preloading in Unknown on line 0
|