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 | |||
| 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, |