diff options
Diffstat (limited to 'ext/opcache/tests/preload_009.phpt')
-rw-r--r-- | ext/opcache/tests/preload_009.phpt | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ext/opcache/tests/preload_009.phpt b/ext/opcache/tests/preload_009.phpt index a13b504cd1..88d0df5fdd 100644 --- a/ext/opcache/tests/preload_009.phpt +++ b/ext/opcache/tests/preload_009.phpt @@ -9,14 +9,18 @@ opcache.preload={PWD}/preload_undef_const_2.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(trait_exists('T')); var_dump(class_exists('Foo')); +try { + new Foo(); +} catch (Throwable $ex) { + echo $ex->getMessage() . "\n"; +} ?> --EXPECT-- -Fatal error: Undefined constant "UNDEF" in Unknown on line 0 - -Fatal error: Failed to resolve initializers of class Foo during preloading in Unknown on line 0 +bool(true) +bool(true) +Undefined constant "UNDEF" |