View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000777 | Xdebug | Uncategorized | public | 2012-02-13 15:38 | 2012-04-23 18:03 |
| Reporter | Jim Bacon | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | XAMPP 1.7.7 | OS | Windows | OS Version | XP SP3 |
| Fixed in Version | 2.1.4 | ||||
| Summary | 0000777: Connection to NetBeans Reset on stepping over call to mysqli_init | ||||
| Description | Using XDebug 2.1.1 supplied with XAMPP and Netbeans 7.1 I have no problem. I upgraded to XDebug 2.1.3-5.3-vc9 and could no longer debug my scripts because the connection to NetBeans would reset after hitting a breakpoint. I found that the connection would always break after a call to mysqli_init(). | ||||
| Steps To Reproduce |
<?php
| ||||
| Additional Information | Upgraded from PHP 5.3.8 to 5.3.10 problem remained. | ||||
| Tags | No tags attached. | ||||
| Operating System | Windows XP SP3 | ||||
| PHP Version | 5.3.8 | ||||
|
|
Hi Jim, could you add a remote debugging log as described at http://xdebug.org/docs/all_settings#remote_log ? cheers, |
|
|
Hi, Log added. Jim. |
|
|
Hi! This crashes for me even when Xdebug is not loaded. I've file a bug report with PHP: https://bugs.php.net/bug.php?id=61079 cheers, |
|
|
I think perhaps there are two issues then. The call to mysqli_init does not cause a problem with the released versions of PHP as far as I know. I can run my scripts containing this function call. When I try to reproduce your bug report to PHP the -n option results in the function not being found as the mysqli module is not loaded. Thanks for your great work, by the way, Jim. |
|
|
I think I managed to do a fix for this. Could you try the latest version from github? |
|
|
If you can point me at a compiled version (5.3-vc9) I would gladly try it but I am not in a position to compile it from source myself. |
|
|
I've just put some up at : http://xdebug.org/files/xdebug-latest.tgz |
|
|
Great. Tried 2.1dev-5.3-vc9 and 2.2dev-5.3-vc9 with PHP 5.3.8. Both appear to fail in the same way as the release, 2.1.3-5.3.vc9. Attached another remote log from tests with 2.1dev. Additional information. On stepping over the call to mysqli_init an "Unhandled exception occurred in httpd.exe" message is received with an option to debug. Screenshot from debugger attached. |
|
|
Hi, I'm experiencing the same problem with xdebug version 2.1.3 on a LAMP with php5.3 mysqli_init causes a Segmentation fault when I step past it. If I run the code with no breakpoints, I don't see the Segmentation fault, but I still get the server reset error. I have another LAMP server with php5.2.10 and xdebug 2.1.0. The exact same code runs without problems. I've uploaded a file that has snippets from my apache error log and my xdebug log: xdebug_logs_mysqli_init_20120228.txt Let me know if I can provide additional info that would be helpful. Be Well, |
|
|
It's still crashing on the PHP bug: https://bugs.php.net/bug.php?id=61003 That's not something I can fix in Xdebug, so I'm closing this issue. Please add comments to the PHP bug to show you are having the same issue. |
|
|
I just wanted to add a final note, then, to say that, from a user's perspective, the resolution to this problem is to use xdebug 2.1.2 until such time as the bug in PHP is fixed (or some change that must have been made in version 2.1.3, is reverted). I guess this also means that, even if PHP is fixed, xdebug 2.1.3 will never play nicely with the older versions of PHP. I am continuing very happily in this manner. |
|
|
Thanks! And closing this issue. |
|
|
Seems like this is fixed in PHP as well now. |