View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000906 | Xdebug | public | 2012-11-25 12:42 | 2014-03-12 21:53 | |
Reporter | figi | Assigned To | derick | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
Platform | Netbeans IDE 7.2.1 | OS | windows 7 | ||
Product Version | 2.2.1 | ||||
Summary | 0000906: line by line trace with Xdebug causes problems with mysqli object values being set differently | ||||
Description | run a simple program to update database. Without the Xdebug trace, it runs smoothly and updates. With Xdebug turned on, step by step tracing the mysqli update variables after an update to database - xdebug causes update variable to change from 1 (correct value) to -1 unexpectedly (incorrect value). | ||||
Steps To Reproduce | For example: $q = "INSERT INTO users (first_name, last_name, email, pass, registration_date) VALUES ('$fn', '$ln', '$e', SHA1('$p'), NOW() )"; // Execute the query: if ($mysqli->affected_rows == 1) { // Xdebug trace of object variable mysqli does show affected_rows is +1 but... it switches to -1 on the next step? so it jumps to the wrong execution line afterwards. Database does get updated despite issues from xdebug. | ||||
Additional Information | I noticed that xdebug step by step tracing on looping statements involving mysql execution code also causes sporadic problem with xdebug running and forcing the break of the loop at incorrect times. Again, without xdebug running, the programs execute fine. Perhaps my xdebug is set incorrectly to handle mysql? Below is mysql settings dump from phpinfo(): mysql Directive Local Value Master Value mysqli Directive Local Value Master Value | ||||
Tags | No tags attached. | ||||
Operating System | windows 7 | ||||
PHP Version | 5.4.3 | ||||
|
I've noticed that MySQLi does many weird things, where accessing variables changes them. I would have to investigate whether that's the case here too - and if you could provide a full example (including insert statements), that would help a lot! |
|
Can you please provide the feedback? |
|
Closing this out as I can't reproduce it and no feedback was provided. Please re-open if this issue returns. |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-11-25 12:42 | figi | New Issue | |
2012-12-24 12:57 | derick | Note Added: 0002404 | |
2012-12-24 12:57 | derick | Assigned To | => derick |
2012-12-24 12:57 | derick | Status | new => feedback |
2014-02-27 19:44 | derick | Note Added: 0002711 | |
2014-03-12 21:53 | derick | Note Added: 0002770 | |
2014-03-12 21:53 | derick | Status | feedback => resolved |
2014-03-12 21:53 | derick | Resolution | open => unable to reproduce |
2016-07-31 12:35 | derick | Category | Debug client (console) => debugclient (debugging tool) |
2016-07-31 12:35 | derick | Category | debugclient (debugging tool) => (No Category) |