1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/restore_error_reporting.phpt

15 lines
302 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 a class name as it is reserved in %s on line %d