php-src/Zend/tests/restore_error_reporting.phpt
Nikita Popov 4fe07d474c 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.
2021-05-11 12:16:59 +02:00

15 lines
300 B
PHP

--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