From:             tidustracker at freenet dot de
Operating system: Windows Vista
PHP version:      5.3.1
PHP Bug Type:     MySQLi related
Bug description:  appcrash with real_connect at persistant connection

Description:
------------
mysqli::real_connect() with 'localhost' as host caused an connection error
2002
mysqli::real_connect() with 'p:localhost' as host caused the same
connection error and ends up in an appcrash. Use of '127.0.0.1' or
'p:127.0.0.1' works fine.

Reproduce code:
---------------
$objMySQLi = new MySQLi();
$objMySQLi->init();

if(!$objMySQLi->options(MYSQLI_OPT_CONNECT_TIMEOUT, 3))
{
        die('Setting MYSQLI_OPT_CONNECT_TIMEOUT failed');
}

$objMySQLi->real_connect('p:localhost',
                         'root',
                         '',
                         'db');

Expected result:
----------------
a working (p)connection like on php 5.3.0

Actual result:
--------------
php.ini:
                mysqli.default_host =
        
                php 5.3.0
                
                'p:127.0.0.1'   = ok
                '127.0.0.1'             = ok
                'localhost'             = ok
                'p:localhost'   = ok
        

                php 5.3.1
                
                'p:127.0.0.1'   = ok
                '127.0.0.1'             = ok
                'localhost'             = connection error 2002
                        Warning: mysqli::real_connect(): (HY000/2002): Ein 
Verbindungsversuch
ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne
nicht richtig reagiert hat,
                        oder die hergestellte Verbindung war fehlerhaft, da der 
verbundene Host
nicht reagiert hat.
                         in D:\Webdevelopment\Scripts\test.php on line 68

                'p:localhost'   = connection error 2002 and appcrash
                        Fehlerhafte Anwendung php_531.exe, Version 5.3.1.0, 
Zeitstempel
0x4b051712, fehlerhaftes Modul php_mysqli.dll, Version 5.3.1.0, Zeitstempel
0x4b051769, Ausnahmecode 0xc0000005,            
                        Fehleroffset 0x000012a5, Prozess-ID 0x1f68, 
Anwendungsstartzeit
01ca95d36ea6609e.

-- 
Edit bug report at http://bugs.php.net/?id=50763&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50763&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50763&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50763&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50763&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50763&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50763&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50763&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50763&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50763&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50763&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50763&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50763&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50763&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50763&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50763&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50763&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50763&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50763&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50763&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50763&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50763&r=mysqlcfg

Reply via email to