Skip to content

Commit 81d16b0

Browse files
committed
Fix test
1 parent b6acc18 commit 81d16b0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Zend/tests/lazy_objects/unclean_shutdown.phpt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ class C {
1010
$reflector = new ReflectionClass(C::class);
1111

1212
$obj = $reflector->newLazyGhost(function ($obj) {
13-
trigger_error('Fatal', E_USER_ERROR);
13+
// Trigger a fatal error to get an unclean shutdown
14+
class bool {}
1415
});
1516

1617
var_dump($obj->a);
1718
--EXPECTF--
18-
Fatal error: Fatal in %s on line %d
19+
Fatal error: Cannot use 'bool' as class name%s on line %d

0 commit comments

Comments
 (0)