View Issue Details

IDProjectCategoryView StatusLast Update
0000944XdebugUncategorizedpublic2013-05-22 22:34
ReporterNoDozing Assigned Toderick  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionno change required 
OSW8 
Product Version2.2.2 
Summary0000944: Get "Socket Exception occured" when trying to connect to mySQL through NetBeans
Description

$connectdb = new mysqli(...) always results in fails with "Socket Exception"

Doing "Run File" works fine.

Steps To Reproduce

$databaseHost = 'localhost';
$databaseUser = 'root';
$databasePassword = '';
$databaseName = 'whatever database';
$connectdb = new mysqli($databaseHost, $databaseUser, $databasePassword, $databaseName);

TagsNo tags attached.
Attached Files
suppor16_now.sql (19,202 bytes)
DB.php (4,190 bytes)
Operating System
PHP Version5.4.3

Activities

derick

2013-05-07 07:42

administrator   ~0002457

Are you sure this is not related to either http://bugs.xdebug.org/view.php?id=881 or http://bugs.xdebug.org/view.php?id=906 or http://bugs.xdebug.org/view.php?id=900 ? I think this might actually be this bug in MySQLI: https://bugs.php.net/bug.php?id=63486

NoDozing

2013-05-07 12:07

reporter   ~0002458

Morning, on the last hyperlink mentioned, I can't even run these two lines from the test script after putting in my connection info:
$con = mysqli_init();
mysqli_real_connect($con, '127.0.0.1', 'root', 'xxxxx');

If I just run it or put a breakpoint at the connect and then let it run, everything is fine. If I put a breakpoint after the connect, it gives me socket error.

I've installed NetBeans and WAMP, which includes MySQL, PHP, XDebug. I've only modified the php.ini at the apache and php level with:
xdebug.idekey="netbeans-xdebug"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
xdebug.remote_log="c:/wamp/tmp/xdebug.log"

derick

2013-05-22 05:50

administrator   ~0002484

Could you please try Xdebug 2.2.3 which has just been released? I am suspecting that release might fix this issue.

NoDozing

2013-05-22 10:29

reporter   ~0002486

You da man. The error has gone away with the latest release.

derick

2013-05-22 22:34

administrator   ~0002488

Fixed in 2.2.3 (apparently).

Issue History

Date Modified Username Field Change
2013-05-03 17:38 NoDozing New Issue
2013-05-04 19:37 sergeeresk File Added: suppor16_now.sql
2013-05-04 19:42 sergeeresk File Added: DB.php
2013-05-07 07:42 derick Note Added: 0002457
2013-05-07 07:42 derick Assigned To => derick
2013-05-07 07:42 derick Status new => feedback
2013-05-07 12:07 NoDozing Note Added: 0002458
2013-05-07 12:07 NoDozing Status feedback => assigned
2013-05-22 05:50 derick Note Added: 0002484
2013-05-22 05:50 derick Status assigned => feedback
2013-05-22 10:29 NoDozing Note Added: 0002486
2013-05-22 10:29 NoDozing Status feedback => assigned
2013-05-22 22:34 derick Note Added: 0002488
2013-05-22 22:34 derick Status assigned => resolved
2013-05-22 22:34 derick Resolution open => no change required
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized