From: tjerk dot meesters at muvee dot com
Operating system: Linux 2.6
PHP version: 5.2.4
PHP Bug Type: *General Issues
Bug description: WSDL error causes HTTP 500 Response
Description:
------------
Failure to load a WSDL file using the SoapClient class causes more than
just an exception. The error is also caught by the error handler and a 500
status code is sent back.
This error is classified as a PHP Fatal error and can't be caught by any
custom error handlers.
This error shouldn't be triggered at all, that's what we have exceptions
for ;-)
Reproduce code:
---------------
<?php
try {
$s = new SoapClient('http://localhost/invalid_wsdl');
} catch (Exception $e) {
echo $e->getMessage();
}
?>
Expected result:
----------------
SOAP-ERROR: Parsing WSDL: Couldn't load from
'http://localhost/invalid_wsdl'
Actual result:
--------------
[HTTP/1.x 500 Internal Server Error]
PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from
'http://localhost/invalid_wsdl' in /var/www/html/test.php on line 4
SOAP-ERROR: Parsing WSDL: Couldn't load from
'http://localhost/invalid_wsdl'
--
Edit bug report at http://bugs.php.net/?id=42773&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42773&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42773&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42773&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42773&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42773&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42773&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42773&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42773&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42773&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42773&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42773&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42773&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42773&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42773&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42773&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42773&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42773&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42773&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42773&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42773&r=mysqlcfg