summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/preload_004.phpt
blob: c61a73134d0114d6b46ca6319eb81cfbc085f959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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