#37355 [NEW]: SOAP uses deprecated __call method by default
From: daniel dot oconnor at gmail dot com
Operating system: Windows
PHP version: 5.1.4
PHP Bug Type: SOAP related
Bug description: SOAP uses deprecated __call method by default
Description:
------------
5.1.4 appears to be still using __call instead of __soapCall, in at least
one place this causes exceptions without error codes to be thrown.
Reproduce code:
---------------
<?php
$wsdl = 'http://vx.valex.com.au/soap/vxsoap.wsdl';
$client = new SoapClient($wsdl);
$result = $client->login(array("username" => "fake", "password"
=>
"user"));
?>
Expected result:
----------------
No SoapFaults thrown, or a SoapFault is thrown with a meaningful error.
Actual result:
--------------
---------- php ----------
Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Server]
SoapFault::__construct() [<a
href='function.SoapFault---construct'>function.SoapFault---construct</a>]:
Invalid parameters. Invalid fault code. in
C:\vx\tests\unit\soap\LoginTest.php:42
Stack trace:
#0 [internal function]: SoapClient->__call('login', Array)
#1 C:\vx\tests\unit\soap\LoginTest.php(42): SoapClient->login(Array)
#2 {main}
thrown in C:\vx\tests\unit\soap\LoginTest.php on line 42
Output completed (0 sec consumed) - Normal Termination
--
Edit bug report at http://bugs.php.net/?id=37355&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37355&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37355&r=trysnapshot51
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37355&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37355&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37355&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37355&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37355&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37355&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37355&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37355&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37355&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37355&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37355&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37355&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37355&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37355&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37355&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37355&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37355&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37355&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37355&r=mysqlcfg
Thread (3 messages)
- daniel dot oconnor at gmail dot com