ID: 31817
Updated by: [EMAIL PROTECTED]
Reported By: tschlottke at virtualminds dot de
-Status: Open
+Status: Bogus
Bug Type: SOAP related
Operating System: debian unstable
PHP Version: 5.0.3
-Assigned To:
+Assigned To: dmitry
New Comment:
It works as expected.
If you will call somthing different from "test" you will go into
__call().
Previous Comments:
------------------------------------------------------------------------
[2005-02-02 16:40:44] tschlottke at virtualminds dot de
Description:
------------
PHP 5's magic __call() method is being ignored in classes
exported via soap.
It's being ignored completly, afais.
IMHO it should be called.
Reproduce code:
---------------
<?php
class test {
function __call($func,$args) {
return 'this is __call()';
}
function test(){
return 'this is test()';
}
}
$server = new SoapServer(null, array('uri' => "namespace"));
$server->setClass('test');
$server->handle();
?>
---
<?php
$client=new SoapClient(...);
echo $client->test();
?>
Expected result:
----------------
"this is __call"
Actual result:
--------------
"this is test()"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31817&edit=1