From:             
Operating system: *
PHP version:      5.3.3
Package:          SOAP related
Bug Type:         Bug
Bug description:Fatal error gets displayed but is not fatal

Description:
------------
When creating a soap client on a non-existing wsdl, an exception gets
thrown and at the same time, a fatal error gets logged, but the script
continues.



Test script:
---------------
try {

        $client = new SoapClient('nonexistentfile.wsdl');

} catch (Exception $e) {

        echo "catched exception: ", get_class($e), ": ", $e->getMessage();

}



echo "if we had a real Fatal error, we wouldn't execute this line\n";

Expected result:
----------------
catched exception: SoapFault: SOAP-ERROR: Parsing WSDL: Couldn't load from
'nonexistentfile.wsdl' : failed to load external entity
"nonexistentfile.wsdl"

if we had a real Fatal error, we wouldn't execute this line



Actual result:
--------------
PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from
'nonexistentfile.wsdl' : failed to load external entity
"nonexistentfile.wsdl"

 in /cab/src/dev/htdocs/test/scratchbook.php on line 102

catched exception: SoapFault: SOAP-ERROR: Parsing WSDL: Couldn't load from
'nonexistentfile.wsdl' : failed to load external entity
"nonexistentfile.wsdl"

if we had a real Fatal error, we wouldn't execute this line



-- 
Edit bug report at http://bugs.php.net/bug.php?id=53023&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53023&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53023&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53023&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53023&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53023&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53023&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53023&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53023&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53023&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53023&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53023&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53023&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53023&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53023&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53023&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53023&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53023&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53023&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53023&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53023&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53023&r=mysqlcfg

Reply via email to