View Issue Details

IDProjectCategoryView StatusLast Update
0002326XdebugStep Debuggingpublic2025-05-14 09:36
Reporterkroligoff Assigned To 
PriorityhighSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Product Version3.4.1 
Target Version3.4devFixed in Version3.4.3 
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

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