ID:               49587
 User updated by:  proofek at gmail dot com
 Reported By:      proofek at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         SOAP related
 Operating System: Linux
 PHP Version:      5.3.0
 New Comment:

Bogus.

The problem is actually because of SoapClient raises a E_WARNING 

"SoapClient::SoapClient() [<a href='function.SoapClient-
SoapClient'>function.SoapClient-SoapClient</a>]: 
php_network_getaddresses: getaddrinfo failed: Name or service not 
known"

which then was caught by my custom error handler and turn into 
Exception.


Previous Comments:
------------------------------------------------------------------------

[2009-09-18 11:31:01] proofek at gmail dot com

Description:
------------
It is related to #34657 but happens in a bit different situation.
No xdebug loaded. Exception is throws and is catchable, but FATAL error

still appears in error log.

Now to my surprise FATAL error is not visible on standard output when 
you switch display_errors on.

That also explains why it's not revealed in 
http://svn.php.net/viewvc/php/php-
src/branches/PHP_5_2/ext/soap/tests/bugs/bug34657.phpt?view=markup, 
although this test is broken anyway.

Both php 5.3 and 5.2 affected

Reproduce code:
---------------
Pseudo code:

try
{
$client = new SoapClient('http://not.there.com/a.php?wsdl');
} catch (Exception $e) {
echo "Exception thrown: " . $e->getMessage();
}

Expected result:
----------------
Message on std output:

Exception thrown: SOAP-ERROR: Parsing WSDL: Couldn't load from 
http://not.there.com/a.php?wsdl

Actual result:
--------------
Message on std output:

Exception thrown: SOAP-ERROR: Parsing WSDL: Couldn't load from 
http://not.there.com/a.php?wsdl

FATAL thrown in error log:

PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from 
http://not.there.com/a.php?wsdl

Script halted.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=49587&edit=1

Reply via email to