1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 15:38:49 +02:00
Files
archived-php-src/ext/opcache/tests/preload_004.phpt
T
2020-07-10 21:05:28 +02:00

21 lines
548 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');
if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows');
?>
--FILE--
<?php
var_dump(class_exists('Foo'));
?>
--EXPECT--
Fatal error: Undefined 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