Skip to content

Commit 4fe07d4

Browse files
committed
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.
1 parent 0706148 commit 4fe07d4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--TEST--
2+
Test error_reporting being restored after fatal error during silencing
3+
--FILE--
4+
<?php
5+
6+
var_dump($undef_var);
7+
@eval('class self {}');
8+
9+
?>
10+
--EXPECTF--
11+
Warning: Undefined variable $undef_var in %s on line %d
12+
NULL
13+
14+
Fatal error: Cannot use 'self' as class name as it is reserved in %s on line %d

0 commit comments

Comments
 (0)