Skip to content

Commit 30dab91

Browse files
committed
Merge branch 'xdebug_3_5'
* xdebug_3_5: Fixed issue #2426: xdebug_get_tracefile_name incorrectly throws notice
2 parents 1239ea7 + 1c3dc70 commit 30dab91

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/tracing/tracing.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,6 @@ PHP_FUNCTION(xdebug_get_tracefile_name)
206206
{
207207
char *filename;
208208

209-
WARN_AND_RETURN_IF_MODE_IS_NOT(XDEBUG_MODE_TRACING);
210-
211209
filename = xdebug_get_trace_filename();
212210
if (!filename) {
213211
RETURN_FALSE;

tests/tracing/bug02426.phpt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
--TEST--
2+
Test for bug #2426: xdebug_get_tracefile_name incorrectly throws notice
3+
--INI--
4+
xdebug.mode=develop
5+
html_errors=0
6+
--FILE--
7+
<?php
8+
$tf = xdebug_get_tracefile_name();
9+
10+
var_dump($tf);
11+
?>
12+
--EXPECTF--
13+
%sbug02426.php:%d:
14+
bool(false)

0 commit comments

Comments
 (0)