View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000900 | Xdebug | Uncategorized | public | 2012-11-06 22:09 | 2015-04-06 21:35 |
| Reporter | GregMartyn | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | not fixable | ||
| Platform | Linux | OS | Fedora | OS Version | 17 |
| Product Version | 2.2.1 | ||||
| Summary | 0000900: Logs filled with spurious warnings | ||||
| Description | See attached test.php I set a breakpoint on line 9 Stepping through the code functions correctly. The problem is all the warnings that I get. Xdebug v2.3.0dev | ||||
| Steps To Reproduce | see description | ||||
| Additional Information | will attach remote_log | ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 5.4.4 | ||||
|
|
Hi! I've just investigated this, and found out that this is something I can't fix in Xdebug. mysqli_free_result() destroys the internal object, but leaves the resource (in your case, $rs) in a silly state. All Xdebug does internally is basically a var_dump( $rs ), and after it is freed with mysqli_free_result(), that throws exactly the same error (without Xdebug). This can however, easily be fixed in the MySQLi extension with the following patch: I've filed a bug for mysqli pointing at this bug report. It is at https://bugs.php.net/bug.php?id=63486 |