|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50763 appcrash with real_connect at persistant connection
Submitted: 2010-01-15 11:51 UTC Modified: 2010-01-23 01:00 UTC
From: tidustracker at freenet dot de Assigned:
Status: No Feedback Package: MySQLi related
PHP Version: 5.3.1 OS: Windows Vista
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2010-01-15 11:51 UTC] tidustracker at freenet dot de
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 '' or 'p:' works fine.

Reproduce code:
$objMySQLi = new MySQLi();

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


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

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

		php 5.3.1
		'p:'	= ok
		''		= 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, Zeitstempel 0x4b051712, fehlerhaftes Modul php_mysqli.dll, Version, Zeitstempel 0x4b051769, Ausnahmecode 0xc0000005, 		
			Fehleroffset 0x000012a5, Prozess-ID 0x1f68, Anwendungsstartzeit 01ca95d36ea6609e.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-01-15 13:40 UTC]
Please try using this snapshot:
For Windows:

 [2010-01-15 16:31 UTC]
Give localhost an ipv4 address on your system and it should work fine.
 [2010-01-23 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 14:01:30 2024 UTC