From:             proofek at gmail dot com
Operating system: Linux
PHP version:      5.3.0
PHP Bug Type:     SOAP related
Bug description:  Parsing WSDL: Couldn't load from URL throws exception AND 
fatal error

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

Reply via email to