Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » PHP
  • » [PHP-DEV] SOAP's ctor's [RSS Feed]

#1 Sept. 9, 2004 11:22:15

Marcus B.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] SOAP's ctor's


Hello Dmitry,

does anything speak against changing soap's ctor's to
__construct which is the PHP 5 way of doing things? Patch
is attached.

--
Best regards,
MarcusIndex: ext/soap/soap.c
===================================================================
RCS file: /repository/php-src/ext/soap/soap.c,v
retrieving revision 1.110.2.5
diff -u -p -d -r1.110.2.5 soap.c
--- ext/soap/soap.c 9 Sep 2004 09:54:06 -0000 1.110.2.5
+++ ext/soap/soap.c 9 Sep 2004 10:19:14 -0000
@@ -251,6 +251,12 @@ PHP_METHOD(SoapParam, SoapParam);
/* 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_function
};

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_fault_fu
};

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)
@@ -293,7 +299,7 @@ unsigned char __call_args = { 5, BYREF
#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)
PHP_ME(SoapClient, __getLastRequest, NULL, 0)
PHP_ME(SoapClient, __getLastResponse, NULL, 0)
@@ -306,17 +312,17 @@ static zend_function_entry soap_client_f
};

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}
};--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

#2 July 10, 2017 10:18:54

Hectorreide
Registered: 2017-05-12
Posts: 3
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] SOAP's ctor's

This post is being moderated

Offline

#3 July 12, 2017 15:51:25

Waltermom
Registered: 2017-04-05
Posts: 4
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] SOAP's ctor's

This post is being moderated

Offline

#4 July 20, 2017 11:52:20

Hectorreide
Registered: 2017-05-12
Posts: 3
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] SOAP's ctor's

This post is being moderated

Offline

Board footer

Moderator control

Enjoy the 22nd of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support