Req #55476 [NoF->Csd]: Method doesn't exist with magic method for soap
| From: | donaldinou at gmail dot com | Date: | Tue, 24 Feb 2015 09:23:40 +0000 |
| Subject: | Req #55476 [NoF->Csd]: Method doesn't exist with magic method for soap | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-190928@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55476&edit=1
ID: 55476
User updated by: donaldinou at gmail dot com
Reported by: donaldinou at gmail dot com
Summary: Method doesn't exist with magic method for soap
-Status: No Feedback
+Status: Closed
Type: Feature/Change Request
-Package: *General Issues
+Package: Reflection related
Operating System: Linux
PHP Version: 5.3.7
Block user comment: N
Private report: N
New Comment:
I cannot "re-open" this one
Previous Comments:
------------------------------------------------------------------------
[2013-02-18 00:34:59] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
------------------------------------------------------------------------
[2011-08-22 13:51:49] kalle@php.net
And the error from $r is? Please be more verbose
------------------------------------------------------------------------
[2011-08-22 12:16:29] donaldinou at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=55476&edit=1