Skip to content

Commit

Permalink
Merged pull request xdebug#991
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Jan 30, 2025
2 parents cff20f9 + cad2dfa commit 45b21c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/coverage/bug00318.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
Test for bug #318: Segmentation Fault in code coverage analysis
--INI--
xdebug.mode=coverage
xdebug.mode=develop,coverage
--FILE--
<?php
// Run me from the PHP CLI
Expand All @@ -12,3 +12,5 @@ xdebug_stop_code_coverage();
?>
--EXPECTF--
Fatal error: %sbreak%s in %sbug00318.inc on line 3

Call Stack:%A
4 changes: 3 additions & 1 deletion tests/coverage/bug00670.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
Test for bug #670: Xdebug crashes with broken "break x" code
--INI--
xdebug.mode=coverage
xdebug.mode=develop,coverage
--FILE--
<?php
xdebug_start_code_coverage( XDEBUG_CC_DEAD_CODE | XDEBUG_CC_UNUSED );
Expand All @@ -10,3 +10,5 @@ echo "OK\n";
?>
--EXPECTF--
Fatal error: Cannot 'break' 2 levels in %s670-ConsistentHashing.inc on line 146

Call Stack:%A

0 comments on commit 45b21c2

Please sign in to comment.