Bug #69311 [NEW]: Can't override __soapCall function
| From: | aavindraa at gmail dot com | Date: | Thu, 26 Mar 2015 16:12:56 +0000 |
| Subject: | Bug #69311 [NEW]: Can't override __soapCall function | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-191624@lists.php.net to get a copy of this message | ||
From: aavindraa at gmail dot com
Operating system: Linux (SLES 11 SP3)
PHP version: 5.6.7
Package: SOAP related
Bug Type: Bug
Bug description:Can't override __soapCall function
Description:
------------
---
From manual page: http://www.php.net/soapclient.soapcall
---
I am unable to override the method __soapCall in SoapClient.
Is there something fundamental that I'm missing?
Test script:
---------------
public TestSoap extends SoapClient {
public function __soapCall($function_name, $arguments, $options =
null, $input_headers = null, &$output_headers = null)
{
echo "OVERRIDEN";
exit(1);
}
}
$myClient = new SoapClient("http://example.com/some-service.wsdl");
$myClient->someMethod();
Expected result:
----------------
THe method override should echo OVERRIDDEN and stop the script
Actual result:
--------------
The method is never called and it continues as normal
--
Edit bug report at https://bugs.php.net/bug.php?id=69311&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69311&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69311&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69311&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69311&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69311&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69311&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69311&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69311&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69311&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69311&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69311&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69311&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69311&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69311&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69311&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69311&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69311&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69311&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69311&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69311&r=mysqlcfg