From:             
Operating system: Linux
PHP version:      5.3.7
Package:          *General Issues
Bug Type:         Feature/Change Request
Bug description:Method doesn't exist with magic method for soap

Description:
------------
---
>From manual page:
http://www.php.net/reflectionmethod.invokeargs%23Description
---

There is differences between call_user_func_array and
Reflection::invokeArgs 
method. Some magic methods are correctly called by call_user_func_array,
but not 
in Reflection Object

Test script:
---------------
if I do this:
// Example: $clientSoap->runTransaction($arguments)

// call_user_func_array
$result = call_user_func_array( array($clientSoap, 'runTransaction'),
$arguments );
if (!is_soap_fault($result)) {
    echo 'The method __doRequest from SoapClient object is called (This is
what we want).';
}

// with reflection
$reflectionMethod = new ReflectionMethod('SoapClient', 'runTransaction');
try {
    $result = $reflectionMethod->invokeArgs( $clientSoap, $arguments );
    if (!is_soap_fault($result)) {
    echo 'The method __doRequest from SoapClient object is called (This is
what we want).';
    }
} catch (ReflectionException  $r) {
    echo 'The method __doRequest is never called because the methode
invokeArgs throw a ReflectionException.';
}

Expected result:
----------------
This should be display:
The method __doRequest from SoapClient object is called (This is what we
want).
The method __doRequest from SoapClient object is called (This is what we
want).

Actual result:
--------------
The method __doRequest from SoapClient object is called (This is what we
want).
The method __doRequest is never called because the methode invokeArgs throw
a 
ReflectionException.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=55476&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=55476&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=55476&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=55476&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=55476&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=55476&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=55476&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=55476&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=55476&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=55476&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=55476&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=55476&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=55476&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=55476&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=55476&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=55476&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=55476&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=55476&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=55476&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=55476&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=55476&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=55476&r=mysqlcfg

Reply via email to