Bug #68415 [Fbk->Csd]: "500 Internal Server Error" on connecting to non-existing host

From: Date: Fri, 14 Nov 2014 07:46:16 +0000
Subject: Bug #68415 [Fbk->Csd]: "500 Internal Server Error" on connecting to non-existing host
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188586@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68415&edit=1 ID: 68415 Updated by: rasmus@php.net Reported by: cmueller at jobrouter dot de Summary: "500 Internal Server Error" on connecting to non-existing host -Status: Feedback +Status: Closed Type: Bug Package: MySQLi related Operating System: Windows 7 SP1 PHP Version: 5.6.2 -Assigned To: +Assigned To: rasmus Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2014-11-14 07:33:15] brack at jobrouter dot de With PHP 5.6.3 the problem is no longer reproducible (Windows 8.1). ------------------------------------------------------------------------ [2014-11-13 17:40:26] ab@php.net That's what i see running your snippet: Warning: mysqli_connect(): php_network_getaddresses: getaddrinfo failed: No such host is known. in Command line code on line 1 Warning: mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: No such host is known. in Command line code on line 1 Could you please retry with the debug symbols? Maybe some backtrace can be seen in the event log then, or even it could produce a dump. Or use the DebugDiag, it can do it as well. Thanks ------------------------------------------------------------------------ [2014-11-13 15:45:39] cmueller at jobrouter dot de The output from the Windows event log: Name der fehlerhaften Anwendung: php-cgi.exe, Version: 5.6.2.0, Zeitstempel: 0x543eed4a Name des fehlerhaften Moduls: KERNELBASE.dll, Version: 6.1.7601.18409, Zeitstempel: 0x53159a86 Ausnahmecode: 0xc0000005 Fehleroffset: 0x0000c42d ID des fehlerhaften Prozesses: 0x2cac Startzeit der fehlerhaften Anwendung: 0x01cfff48611dc1bb Pfad der fehlerhaften Anwendung: C:\Program Files (x86)\PHP 5.6\php-cgi.exe Pfad des fehlerhaften Moduls: C:\Windows\syswow64\KERNELBASE.dll Berichtskennung: e8d8d143-6b3c-11e4-9b9a-ecf4bb35880a ------------------------------------------------------------------------ [2014-11-13 15:41:09] cmueller at jobrouter dot de Description: ------------ If you connect to a non-existing host via mysqli_connect() or mysql_connect() you'll get an 500 Internal Server Error on Windows 7 SP1 with IIS 7.5 and PHP 5.6.2. With PHP 5.4.32 an error message is shown. Test script: --------------- $conn = mysqli_connect( 'xxxxxxxxxxx', 'test', 'test' ); Expected result: ---------------- Show an error message that cannot connect to host. Actual result: -------------- 500 Internal Server Error ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68415&edit=1

« previous php.bugs (#188586) next »