|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-02-02 16:40 UTC] 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()"
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 08:00:01 2025 UTC |
You are wrong. Try the following script: <?php class test { function __call($func,$args) { return 'this is __call()'; } function test(){ return 'this is test()'; } } $x = new test; echo $x->test(); ?>