diff options
Diffstat (limited to 'ext/opcache/tests/preload_004.phpt')
-rw-r--r-- | ext/opcache/tests/preload_004.phpt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/opcache/tests/preload_004.phpt b/ext/opcache/tests/preload_004.phpt index f4dd45a062..c8006dae1c 100644 --- a/ext/opcache/tests/preload_004.phpt +++ b/ext/opcache/tests/preload_004.phpt @@ -9,13 +9,16 @@ opcache.preload={PWD}/preload_undef_const.inc <?php require_once('skipif.inc'); if (PHP_OS_FAMILY == 'Windows') die('skip Preloading is not supported on Windows'); -if (getenv('SKIP_ASAN')) die('xfail Startup failure leak'); ?> --FILE-- <?php var_dump(class_exists('Foo')); +try { + new Foo(); +} catch (Throwable $ex) { + echo $ex->getMessage() . "\n"; +} ?> --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 +bool(true) +Undefined constant self::DOES_NOT_EXIST |