View Issue Details

IDProjectCategoryView StatusLast Update
0002326XdebugStep Debuggingpublic2025-04-08 12:40
Reporterkroligoff Assigned Toderick  
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version3.4.1 
Target Version3.4devFixed in Version3.4dev 
Summary0002326: Step debugger finishes if property debugging handler in PHP throws an exception
Description

Step Debugging process stop after call function with global variabe, im not understand this bug Xdebug or PHP 8.4 (XMLReader have stack leak)

i think problem if uses global variable (global $reader;) in inside function
and open any xml file use $err = $reader->open($fname);
if use local variable work perfect and not have this issue.

Steps To Reproduce
  1. Set breakpoint on $err = ReloadXmlFile("order.xml");
    • need open exist any xml file in function
  2. Make "Step over" (F8)
  3. On line "if (!$err)" try make "Step over" again (F8)
  4. Process stopped and not run next line
    Process finished with exit code 0
Additional Information

php -v
PHP 8.4.4 (cli) (built: Feb 11 2025 16:25:02) (ZTS Visual C++ 2022 x64)
Copyright (c) The PHP Group
Zend Engine v4.4.4, Copyright (c) Zend Technologies
with Xdebug v3.4.1, Copyright (c) 2002-2025, by Derick Rethans

TagsNo tags attached.
Operating System*
PHP Version8.4-dev

Activities

kroligoff

2025-03-05 01:39

reporter   ~0007188

log

xdebug.log (82,297 bytes)

kroligoff

2025-03-05 01:44

reporter   ~0007190

sorry not select: windows 11 os

derick

2025-03-05 08:19

administrator   ~0007191

I can reproduce this with your accurate and short test case, thanks for providing that.

kroligoff

2025-03-20 01:34

reporter   ~0007217

sorry for question, in next update maybe fix? Very need :)

derick

2025-04-04 16:31

administrator   ~0007228

https://github.com/xdebug/xdebug/pull/1006

Issue History

Date Modified Username Field Change
2025-03-05 01:38 kroligoff New Issue
2025-03-05 01:39 kroligoff Note Added: 0007188
2025-03-05 01:39 kroligoff File Added: xdebug.log
2025-03-05 01:44 kroligoff Note Added: 0007190
2025-03-05 08:19 derick Assigned To => derick
2025-03-05 08:19 derick Status new => confirmed
2025-03-05 08:19 derick Note Added: 0007191
2025-03-05 08:19 derick Operating System => *
2025-03-20 01:34 kroligoff Note Added: 0007217
2025-04-04 16:31 derick Target Version => 3.4dev
2025-04-04 16:31 derick Summary Step Debugging Process finished => Step debugger finishes if property debugging handler in PHP throws an exception
2025-04-04 16:31 derick Note Added: 0007228
2025-04-08 12:40 derick Status confirmed => closed
2025-04-08 12:40 derick Resolution open => fixed
2025-04-08 12:40 derick Fixed in Version => 3.4dev