Skip to content

Commit cad2dfa

Browse files
committed
PHP 8.5: Fatal errors now have stack traces
Xdebug has always had these in develop mode, which wasn't turned on for these tests. We we enable them so that the test has the same out for all supported PHP versions.
1 parent cff20f9 commit cad2dfa

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

tests/coverage/bug00318.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Test for bug #318: Segmentation Fault in code coverage analysis
33
--INI--
4-
xdebug.mode=coverage
4+
xdebug.mode=develop,coverage
55
--FILE--
66
<?php
77
// Run me from the PHP CLI
@@ -12,3 +12,5 @@ xdebug_stop_code_coverage();
1212
?>
1313
--EXPECTF--
1414
Fatal error: %sbreak%s in %sbug00318.inc on line 3
15+
16+
Call Stack:%A

tests/coverage/bug00670.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
Test for bug #670: Xdebug crashes with broken "break x" code
33
--INI--
4-
xdebug.mode=coverage
4+
xdebug.mode=develop,coverage
55
--FILE--
66
<?php
77
xdebug_start_code_coverage( XDEBUG_CC_DEAD_CODE | XDEBUG_CC_UNUSED );
@@ -10,3 +10,5 @@ echo "OK\n";
1010
?>
1111
--EXPECTF--
1212
Fatal error: Cannot 'break' 2 levels in %s670-ConsistentHashing.inc on line 146
13+
14+
Call Stack:%A

0 commit comments

Comments
 (0)