From:             tschlottke at virtualminds dot de
Operating system: debian unstable
PHP version:      5.0.3
PHP Bug Type:     SOAP related
Bug description:  magic method __call is being ignored in classes "exported" 
with setClass()

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 bug report at http://bugs.php.net/?id=31817&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31817&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31817&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31817&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31817&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31817&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31817&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31817&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31817&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31817&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31817&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31817&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31817&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31817&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31817&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31817&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31817&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31817&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31817&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31817&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31817&r=mysqlcfg

Reply via email to