|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53899 SoapClient invalid wsdl crashes php with file error_log active
Submitted: 2011-02-01 10:01 UTC Modified: 2015-05-03 04:22 UTC
From: serge at mch dot be Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.3.5 OS: Windows Server 2003 R3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: serge at mch dot be
New email:
PHP Version: OS:


 [2011-02-01 10:01 UTC] serge at mch dot be
See :

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:
new SoapClient('');

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


Expected result:
SoapFault Exception should be thrown.

Actual result:
FastCGI Error (Error 500)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-04-23 20:52 UTC]
-Status: Open +Status: Feedback
 [2015-04-23 20:52 UTC]
An uncaught execption will cause a fatal PHP error which is likely to cause a 500 response status code. Please try the following code:

    try {
        new SoapClient('');
    } catch (SoapFault $ex) {
        echo "SoapFault Exception";
 [2015-05-03 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon May 10 18:01:25 2021 UTC