]> granicus.if.org Git - php/commitdiff
Fixed bug #41477 (no arginfo about SoapClient::__soapCall()).
authorIlia Alshanetsky <iliaa@php.net>
Sun, 27 May 2007 17:46:46 +0000 (17:46 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 27 May 2007 17:46:46 +0000 (17:46 +0000)
NEWS
ext/soap/soap.c
ext/soap/tests/bugs/bug41477.phpt [new file with mode: 0644]

diff --git a/NEWS b/NEWS
index 2dfc4b049c38dbae33a9dbb465fc0126cb677b7f..3ecae34d10beb9a208747996a674eba44e2e3f40 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,7 @@ PHP                                                                        NEWS
 - Fixed bug #41492 (open_basedir/safe_mode bypass inside realpath()). (Ilia)
 - Fixed bug #41504 (json_decode() incorrectly decodes JSON arrays with empty
   string keys). (Ilia)
+- Fixed bug #41477 (no arginfo about SoapClient::__soapCall()). (Ilia)
 - Fixed bug #41236 (Regression in timeout handling of non-blocking SSL
   connections during reads and writes). (Ilia)
 
index 0f44ae20eeb12cc9a565dae08e58d36fda67d154..4017711ceb4ccfa1306c99a328b62a6b795e4922 100644 (file)
@@ -314,11 +314,11 @@ ZEND_BEGIN_ARG_INFO(__call_args, 0)
        ZEND_ARG_PASS_INFO(0)
 ZEND_END_ARG_INFO()
 ZEND_BEGIN_ARG_INFO_EX(__soap_call_args, 0, 0, 2)
-       ZEND_ARG_PASS_INFO(0)
-       ZEND_ARG_PASS_INFO(0)
-       ZEND_ARG_PASS_INFO(0)
-       ZEND_ARG_PASS_INFO(0)
-       ZEND_ARG_PASS_INFO(1)
+       ZEND_ARG_INFO(0, function_name)
+       ZEND_ARG_INFO(0, arguments)
+       ZEND_ARG_INFO(0, options)
+       ZEND_ARG_INFO(0, input_headers)
+       ZEND_ARG_INFO(1, output_headers)
 ZEND_END_ARG_INFO()
 #else
 unsigned char __call_args[] = { 2, BYREF_NONE, BYREF_NONE };
diff --git a/ext/soap/tests/bugs/bug41477.phpt b/ext/soap/tests/bugs/bug41477.phpt
new file mode 100644 (file)
index 0000000..a103e69
--- /dev/null
@@ -0,0 +1,20 @@
+--TEST--
+Bug #41477 (no arginfo about SoapClient::__soapCall())
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+$objRfClass = new ReflectionClass('SoapClient');
+$objRfMethod = $objRfClass->getMethod('__soapCall');
+$arrParams = $objRfMethod->getParameters();
+foreach($arrParams as $objRfParam)
+{
+        var_dump($objRfParam->getName());
+}
+?>
+--EXPECT--
+string(13) "function_name"
+string(9) "arguments"
+string(7) "options"
+string(13) "input_headers"
+string(14) "output_headers"