View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001053 | Xdebug | public | 2014-05-25 16:39 | 2014-05-27 22:33 | |
Reporter | bromelio | Assigned To | derick | ||
Priority | immediate | Severity | major | Reproducibility | always |
Status | resolved | Resolution | not fixable | ||
Platform | Netbeans | OS | Windows | OS Version | 8 |
Product Version | 2.2.5 | ||||
Summary | 0001053: Xdebug messes with mysqli_affected_rows($link) | ||||
Description | Please see http://stackoverflow.com/q/23848434/3253673 for a detailed description (particularly the EDIT-section at the bottom). On the attached screenshot you can see in the variables window (on the right) that affected_rows = 1 and still the "if" evaluates to "false" and Xdebug jumps to code line 92 instead of 85 upon the next "step into" (F7). The issue has also already been encountered by other users, e.g.: Thank you in advance for your answer! | ||||
Steps To Reproduce | -------------------------main.php (1 of 3)------------------------------- <?php
$q = "INSERT INTO users (username, email, pass, first_name, last_name, sex, birth_day, birth_month, birth_year, phone, street, street_nr, city, zip_code, country, user_img) VALUES ('$u', '$e', '$p', '$fn', '$ln', '$sex', '$bd', '$bm', '$by', '$pn', '$st', '$sn', '$cit', '$pc', '$ct', '$user_img')"; if (mysqli_affected_rows($dbc) === 1) { //that's where the problem occurs: in the Debugging -> variables window "affected_rows" correctly shows "1"...
} mysqli_close($dbc); ?> ---------------------included "dbc.inc.php" (2 of 3)------------------------- <?php // This file contains the database access information. // Set the database access information as constants: // Make the connection: // Set the character set: // Function for escaping and trimming form data.
} // End of the escape_data() function. // Omit the closing PHP tag to avoid 'headers already sent' errors! | ||||
Additional Information | ----------------------SQL to create table "users" (3 of 3)--------------------- CREATE TABLE IF NOT EXISTS | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Operating System | Windows 8 | ||||
PHP Version | 5.5.5-5.5.9 | ||||
|
Hi, thanks for this report. I investigated, and found that this is not something that Xdebug does wrong, but the MySQLi extension itself. I filed a bug report for PHP at https://bugs.php.net/bug.php?id=67348 |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-05-25 16:39 | bromelio | New Issue | |
2014-05-25 16:39 | bromelio | File Added: affected_rows=1.PNG | |
2014-05-27 22:33 | derick | Note Added: 0002842 | |
2014-05-27 22:33 | derick | Status | new => resolved |
2014-05-27 22:33 | derick | Resolution | open => not fixable |
2014-05-27 22:33 | derick | Assigned To | => derick |
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) |