We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1239ea7 + 1c3dc70 commit 30dab91Copy full SHA for 30dab91
2 files changed
src/tracing/tracing.c
@@ -206,8 +206,6 @@ PHP_FUNCTION(xdebug_get_tracefile_name)
206
{
207
char *filename;
208
209
- WARN_AND_RETURN_IF_MODE_IS_NOT(XDEBUG_MODE_TRACING);
210
-
211
filename = xdebug_get_trace_filename();
212
if (!filename) {
213
RETURN_FALSE;
tests/tracing/bug02426.phpt
@@ -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