Bug #53899 [Opn->Fbk]: SoapClient invalid wsdl crashes php with file error_log active

From: Date: Thu, 23 Apr 2015 20:52:25 +0000
Subject: Bug #53899 [Opn->Fbk]: SoapClient invalid wsdl crashes php with file error_log active
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192308@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=53899&edit=1 ID: 53899 Updated by: cmb@php.net Reported by: serge at mch dot be Summary: SoapClient invalid wsdl crashes php with file error_log active -Status: Open +Status: Feedback Type: Bug Package: SOAP related Operating System: Windows Server 2003 R3 PHP Version: 5.3.5 Block user comment: N Private report: N New Comment: An uncaught execption will cause a fatal PHP error which is likely to cause a 500 response status code. Please try the following code: <?php try { new SoapClient('http://example.com'); } catch (SoapFault $ex) { echo "SoapFault Exception"; } Previous Comments: ------------------------------------------------------------------------ [2011-02-01 10:01:13] serge at mch dot be Description: ------------ See : http://bugs.php.net/bug.php?id=48706 SoapClient crashes the PHP when invalid wsdl_url is used and file php log output is configured in the php.ini. Test script: --------------- PHP code: <?php new SoapClient('http://example.com'); ?> php.ini-dist and php.ini changes: --- C:/php5/php.ini-dist +++ C:/php5/php.ini -log_errors = Off +log_errors = On -;error_log = filename +error_log = c:/php_log -;extension=php_soap.dll +extension=php_soap.dll Expected result: ---------------- SoapFault Exception should be thrown. Actual result: -------------- FastCGI Error (Error 500) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=53899&edit=1

« previous php.bugs (#192308) next »