dmitry Mon Sep 13 07:54:06 2004 EDT
Modified files: (Branch: PHP_5_0)
/php-src NEWS
/php-src/ext/soap soap.c
/php-src/ext/soap/interop client_round2_interop.php
/php-src/ext/soap/tests transport001.phpt
/php-src/ext/soap/tests/bugs bug28969.phpt bug29795.phpt
bug29839.phpt bug29844.phpt
Log:
Change soap's ctors to __construct(),
rename SoapClient->__call() to SoapClinet->__soapCall().
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1760.2.70&r2=1.1760.2.71&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1760.2.70 php-src/NEWS:1.1760.2.71
--- php-src/NEWS:1.1760.2.70 Sat Sep 11 10:20:55 2004
+++ php-src/NEWS Mon Sep 13 07:54:05 2004
@@ -9,7 +9,7 @@
(Paul Hudson, Derick)
- Implemented periodic PCRE compiled regexp cache cleanup, to avoid memory
exhaustion. (Andrei)
-- Renamed SoapClient->__call() to SoapClinet->__soap_call(). (Dmitry)
+- Renamed SoapClient->__call() to SoapClinet->__soapCall(). (Dmitry)
- Fixed bug with raw_post_data not getting set (Brian)
- Fixed a file-descriptor leak with phpinfo() and other 'special' URLs (Zeev)
- Fixed bug #29985 (unserialize()/ __PHP_Incomplete_class does not report
http://cvs.php.net/diff.php/php-src/ext/soap/soap.c?r1=1.110.2.6&r2=1.110.2.7&ty=u
Index: php-src/ext/soap/soap.c
diff -u php-src/ext/soap/soap.c:1.110.2.6 php-src/ext/soap/soap.c:1.110.2.7
--- php-src/ext/soap/soap.c:1.110.2.6 Fri Sep 10 05:03:25 2004
+++ php-src/ext/soap/soap.c Mon Sep 13 07:54:05 2004
@@ -17,7 +17,7 @@
| Dmitry Stogov <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: soap.c,v 1.110.2.6 2004/09/10 09:03:25 dmitry Exp $ */
+/* $Id: soap.c,v 1.110.2.7 2004/09/13 11:54:05 dmitry Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -251,6 +251,12 @@
/* SoapHeader Functions */
PHP_METHOD(SoapHeader, SoapHeader);
+#ifdef ZEND_ENGINE_2
+#define SOAP_CTOR(class_name, func_name, arginfo, flags) ZEND_FENTRY(__construct,
ZEND_FN(class_name##_##func_name), arginfo, flags)
+#else
+#define SOAP_CTOR(class_name, func_name, arginfo, flags) PHP_ME(class_name,
func_name, arginfo, flags)
+#endif
+
static zend_function_entry soap_functions[] = {
#ifdef HAVE_PHP_DOMXML
PHP_FE(soap_encode_to_xml, NULL)
@@ -262,7 +268,7 @@
};
static zend_function_entry soap_fault_functions[] = {
- PHP_ME(SoapFault, SoapFault, NULL, 0)
+ SOAP_CTOR(SoapFault, SoapFault, NULL, 0)
#ifdef ZEND_ENGINE_2
PHP_ME(SoapFault, __toString, NULL, 0)
#endif
@@ -270,7 +276,7 @@
};
static zend_function_entry soap_server_functions[] = {
- PHP_ME(SoapServer, SoapServer, NULL, 0)
+ SOAP_CTOR(SoapServer, SoapServer, NULL, 0)
PHP_ME(SoapServer, setPersistence, NULL, 0)
PHP_ME(SoapServer, setClass, NULL, 0)
PHP_ME(SoapServer, addFunction, NULL, 0)
@@ -301,12 +307,12 @@
#endif
static zend_function_entry soap_client_functions[] = {
- PHP_ME(SoapClient, SoapClient, NULL, 0)
+ SOAP_CTOR(SoapClient, SoapClient, NULL, 0)
PHP_ME(SoapClient, __call, __call_args, 0)
#ifdef ZEND_ENGINE_2
- ZEND_FENTRY(__soap_call, ZEND_FN(SoapClient___call), __soap_call_args, 0)
+ ZEND_FENTRY(__soapCall, ZEND_FN(SoapClient___call), __soap_call_args, 0)
#else
- ZEND_NAMED_FE(__soap_call, ZEND_FN(SoapClient___call), __soap_call_args)
+ ZEND_NAMED_FE(__soapCall, ZEND_FN(SoapClient___call), __soap_call_args)
#endif
PHP_ME(SoapClient, __getLastRequest, NULL, 0)
PHP_ME(SoapClient, __getLastResponse, NULL, 0)
@@ -319,17 +325,17 @@
};
static zend_function_entry soap_var_functions[] = {
- PHP_ME(SoapVar, SoapVar, NULL, 0)
+ SOAP_CTOR(SoapVar, SoapVar, NULL, 0)
{NULL, NULL, NULL}
};
static zend_function_entry soap_param_functions[] = {
- PHP_ME(SoapParam, SoapParam, NULL, 0)
+ SOAP_CTOR(SoapParam, SoapParam, NULL, 0)
{NULL, NULL, NULL}
};
static zend_function_entry soap_header_functions[] = {
- PHP_ME(SoapHeader, SoapHeader, NULL, 0)
+ SOAP_CTOR(SoapHeader, SoapHeader, NULL, 0)
{NULL, NULL, NULL}
};
http://cvs.php.net/diff.php/php-src/ext/soap/interop/client_round2_interop.php?r1=1.15.2.1&r2=1.15.2.2&ty=u
Index: php-src/ext/soap/interop/client_round2_interop.php
diff -u php-src/ext/soap/interop/client_round2_interop.php:1.15.2.1
php-src/ext/soap/interop/client_round2_interop.php:1.15.2.2
--- php-src/ext/soap/interop/client_round2_interop.php:1.15.2.1 Fri Sep 10 05:03:25
2004
+++ php-src/ext/soap/interop/client_round2_interop.php Mon Sep 13 07:54:06 2004
@@ -16,7 +16,7 @@
// | Authors: Shane Caraveo <[EMAIL PROTECTED]> |
// +----------------------------------------------------------------------+
//
-// $Id: client_round2_interop.php,v 1.15.2.1 2004/09/10 09:03:25 dmitry Exp $
+// $Id: client_round2_interop.php,v 1.15.2.2 2004/09/13 11:54:06 dmitry Exp $
//
require_once 'DB.php'; // PEAR/DB
require_once 'client_round2_params.php';
@@ -94,7 +94,7 @@
$this->_getEndpoints($test, 1);
// retreive endpoints from the endpoint server
- $endpointArray =
$soapclient->__soap_call("GetEndpointInfo",array("groupName"=>$test),array('soapaction'=>"http://soapinterop.org/",'uri'=>"http://soapinterop.org/"));
+ $endpointArray =
$soapclient->__soapCall("GetEndpointInfo",array("groupName"=>$test),array('soapaction'=>"http://soapinterop.org/",'uri'=>"http://soapinterop.org/"));
if (is_soap_fault($endpointArray) || PEAR::isError($endpointArray)) {
if ($this->html) print "<pre>";
print $soapclient->wire."\n";
@@ -428,9 +428,9 @@
$return = eval('return $soap->'.$soap_test->method_name.'('.$args.');');
} else {
if ($soap_test->headers || $soap_test->headers_expect) {
- $return =
$soap->__soap_call($soap_test->method_name,$soap_test->method_params,array('soapaction'=>$soapaction,'uri'=>$namespace),
$soap_test->headers, $result_headers);
+ $return =
$soap->__soapCall($soap_test->method_name,$soap_test->method_params,array('soapaction'=>$soapaction,'uri'=>$namespace),
$soap_test->headers, $result_headers);
} else {
- $return =
$soap->__soap_call($soap_test->method_name,$soap_test->method_params,array('soapaction'=>$soapaction,'uri'=>$namespace));
+ $return =
$soap->__soapCall($soap_test->method_name,$soap_test->method_params,array('soapaction'=>$soapaction,'uri'=>$namespace));
}
}
} catch (SoapFault $ex) {
http://cvs.php.net/diff.php/php-src/ext/soap/tests/transport001.phpt?r1=1.1&r2=1.1.2.1&ty=u
Index: php-src/ext/soap/tests/transport001.phpt
diff -u php-src/ext/soap/tests/transport001.phpt:1.1
php-src/ext/soap/tests/transport001.phpt:1.1.2.1
--- php-src/ext/soap/tests/transport001.phpt:1.1 Thu May 20 12:55:03 2004
+++ php-src/ext/soap/tests/transport001.phpt Mon Sep 13 07:54:06 2004
@@ -10,8 +10,8 @@
class LocalSoapClient extends SoapClient {
- function LocalSoapClient($wsdl, $options) {
- $this->SoapClient($wsdl, $options);
+ function __construct($wsdl, $options) {
+ parent::__construct($wsdl, $options);
$this->server = new SoapServer($wsdl, $options);
$this->server->addFunction('Add');
}
http://cvs.php.net/diff.php/php-src/ext/soap/tests/bugs/bug28969.phpt?r1=1.1.2.1&r2=1.1.2.2&ty=u
Index: php-src/ext/soap/tests/bugs/bug28969.phpt
diff -u php-src/ext/soap/tests/bugs/bug28969.phpt:1.1.2.1
php-src/ext/soap/tests/bugs/bug28969.phpt:1.1.2.2
--- php-src/ext/soap/tests/bugs/bug28969.phpt:1.1.2.1 Tue Aug 10 12:30:31 2004
+++ php-src/ext/soap/tests/bugs/bug28969.phpt Mon Sep 13 07:54:06 2004
@@ -11,8 +11,8 @@
class LocalSoapClient extends SoapClient {
- function LocalSoapClient($wsdl, $options) {
- $this->SoapClient($wsdl, $options);
+ function __construct($wsdl, $options) {
+ parent::__construct($wsdl, $options);
$this->server = new SoapServer($wsdl, $options);
$this->server->addFunction('test');
}
http://cvs.php.net/diff.php/php-src/ext/soap/tests/bugs/bug29795.phpt?r1=1.1.2.1&r2=1.1.2.2&ty=u
Index: php-src/ext/soap/tests/bugs/bug29795.phpt
diff -u php-src/ext/soap/tests/bugs/bug29795.phpt:1.1.2.1
php-src/ext/soap/tests/bugs/bug29795.phpt:1.1.2.2
--- php-src/ext/soap/tests/bugs/bug29795.phpt:1.1.2.1 Thu Aug 26 11:23:57 2004
+++ php-src/ext/soap/tests/bugs/bug29795.phpt Mon Sep 13 07:54:06 2004
@@ -6,8 +6,8 @@
<?php
class LocalSoapClient extends SoapClient {
- function LocalSoapClient($wsdl, $options) {
- $this->SoapClient($wsdl, $options);
+ function __construct($wsdl, $options) {
+ parent::__construct($wsdl, $options);
}
function __doRequest($request, $location, $action, $version) {
http://cvs.php.net/diff.php/php-src/ext/soap/tests/bugs/bug29839.phpt?r1=1.1.2.1&r2=1.1.2.2&ty=u
Index: php-src/ext/soap/tests/bugs/bug29839.phpt
diff -u php-src/ext/soap/tests/bugs/bug29839.phpt:1.1.2.1
php-src/ext/soap/tests/bugs/bug29839.phpt:1.1.2.2
--- php-src/ext/soap/tests/bugs/bug29839.phpt:1.1.2.1 Thu Aug 26 14:36:47 2004
+++ php-src/ext/soap/tests/bugs/bug29839.phpt Mon Sep 13 07:54:06 2004
@@ -11,8 +11,8 @@
class LocalSoapClient extends SoapClient {
- function LocalSoapClient($wsdl, $options) {
- $this->SoapClient($wsdl, $options);
+ function __construct($wsdl, $options) {
+ parent::__construct($wsdl, $options);
$this->server = new SoapServer($wsdl, $options);
$this->server->addFunction('EchoString');
}
http://cvs.php.net/diff.php/php-src/ext/soap/tests/bugs/bug29844.phpt?r1=1.1.2.1&r2=1.1.2.2&ty=u
Index: php-src/ext/soap/tests/bugs/bug29844.phpt
diff -u php-src/ext/soap/tests/bugs/bug29844.phpt:1.1.2.1
php-src/ext/soap/tests/bugs/bug29844.phpt:1.1.2.2
--- php-src/ext/soap/tests/bugs/bug29844.phpt:1.1.2.1 Thu Aug 26 08:20:13 2004
+++ php-src/ext/soap/tests/bugs/bug29844.phpt Mon Sep 13 07:54:06 2004
@@ -13,8 +13,8 @@
class LocalSoapClient extends SoapClient {
- function LocalSoapClient($wsdl, $options) {
- $this->SoapClient($wsdl, $options);
+ function __construct($wsdl, $options) {
+ parent::__construct($wsdl, $options);
$this->server = new SoapServer($wsdl, $options);
$this->server->setClass('hello_world');;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php