View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001062 | Xdebug | Uncategorized | public | 2014-07-08 17:04 | 2014-12-15 12:19 |
Reporter | jonycp | Assigned To | derick | ||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
OS | Windows | OS Version | 7 | ||
Product Version | 2.2.5 | ||||
Summary | 0001062: SimpleXML foreach does not advance during step | ||||
Description | I have Xampp PHP code that executes correctly, advancing through the foreach loops, but when I try to step through the foreach loops in debug, it hangs and will not advance. If I put the cursor after the foreach loop and click run to cursor, it will run to cursor. Problem is happening in foreach loop and cannot debug as needed. | ||||
Steps To Reproduce | I am using SimpleXML. $file = simplexml_load_file('file.xml'); foreach( $sxo as $s ) { $variable = value; ==> Set cursor here and Run to Cursor and it runs through the foreach and goes there ok. | ||||
Additional Information | from php.ini (used wizard / paste phpinfo to get correct version of dll) [XDebug] | ||||
Tags | No tags attached. | ||||
Operating System | Windows 7 | ||||
PHP Version | 5.5.0-5.5.4 | ||||
|
I would like to add, just for reference, that xdebug correctly advances through a foreach loop on a php array. |
|
Can you please provide the script, the XML file and a remote log (see http://xdebug.org/docs/remote#remote_log on how to make one)? |
|
Ping? |
|
Hello, Sorry, for some reason I did not get the email in November. I actually stopped using SimpleXML in favor of a technique I found to using json_encode/decode to create an array. I have no problems debugging an array loop. Thank you for your follow up on this! |
|
Okay - thanks for the bug report in any case! Let me know if you run into this again. cheers, |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-07-08 17:04 | jonycp | New Issue | |
2014-07-08 17:45 | jonycp | Note Added: 0002860 | |
2014-11-11 19:46 | derick | Note Added: 0002890 | |
2014-11-11 19:46 | derick | Assigned To | => derick |
2014-11-11 19:46 | derick | Status | new => feedback |
2014-12-13 20:36 | derick | Note Added: 0002935 | |
2014-12-14 13:21 | jonycp | Note Added: 0002937 | |
2014-12-14 13:21 | jonycp | Status | feedback => assigned |
2014-12-15 12:19 | derick | Note Added: 0002938 | |
2014-12-15 12:19 | derick | Status | assigned => resolved |
2014-12-15 12:19 | derick | Resolution | open => unable to reproduce |
2016-07-31 12:36 | derick | Category | Usage problems => Usage problems (Crashes) |
2016-07-31 12:38 | derick | Category | Usage problems (Crashes) => Usage problems (Wrong Results) |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |