1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Add test for restoring error_reporting on fatal error during silencing

This guard against the issue that GH-6904 would introduce when
run under --repeat 2 mode.
This commit is contained in:
Nikita Popov
2021-05-11 12:16:59 +02:00
parent 07061482a0
commit 4fe07d474c

View File

@@ -0,0 +1,14 @@
--TEST--
Test error_reporting being restored after fatal error during silencing
--FILE--
<?php
var_dump($undef_var);
@eval('class self {}');
?>
--EXPECTF--
Warning: Undefined variable $undef_var in %s on line %d
NULL
Fatal error: Cannot use 'self' as class name as it is reserved in %s on line %d