diff options
author | Dmitry Stogov <dmitry@php.net> | 2007-09-27 18:28:44 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2007-09-27 18:28:44 +0000 |
commit | 8146078f7bbbe4f4799e1a154ea450c90c855728 (patch) | |
tree | 46cb160985407d24ff3a9d485a90e88fee4cdbb6 /ext/soap/soap.c | |
parent | 98a2c03808f73be0c08bfe654b985483ccb8d6bc (diff) | |
download | php-git-8146078f7bbbe4f4799e1a154ea450c90c855728.tar.gz |
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
Diffstat (limited to 'ext/soap/soap.c')
-rw-r--r-- | ext/soap/soap.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/soap/soap.c b/ext/soap/soap.c index d7043d279f..725d5d46a5 100644 --- a/ext/soap/soap.c +++ b/ext/soap/soap.c @@ -203,19 +203,19 @@ PHP_METHOD(SoapHeader, SoapHeader); #define SOAP_CTOR(class_name, func_name, arginfo, flags) ZEND_FENTRY(__construct, ZEND_MN(class_name##_##func_name), arginfo, flags) -static zend_function_entry soap_functions[] = { +static const zend_function_entry soap_functions[] = { PHP_FE(use_soap_error_handler, NULL) PHP_FE(is_soap_fault, NULL) {NULL, NULL, NULL} }; -static zend_function_entry soap_fault_functions[] = { +static const zend_function_entry soap_fault_functions[] = { SOAP_CTOR(SoapFault, SoapFault, NULL, 0) PHP_ME(SoapFault, __toString, NULL, 0) {NULL, NULL, NULL} }; -static zend_function_entry soap_server_functions[] = { +static const zend_function_entry soap_server_functions[] = { SOAP_CTOR(SoapServer, SoapServer, NULL, 0) PHP_ME(SoapServer, setPersistence, NULL, 0) PHP_ME(SoapServer, setClass, NULL, 0) @@ -240,7 +240,7 @@ ZEND_BEGIN_ARG_INFO_EX(__soap_call_args, 0, 0, 2) ZEND_ARG_PASS_INFO(1) ZEND_END_ARG_INFO() -static zend_function_entry soap_client_functions[] = { +static const zend_function_entry soap_client_functions[] = { SOAP_CTOR(SoapClient, SoapClient, NULL, 0) PHP_ME(SoapClient, __call, __call_args, 0) ZEND_FENTRY(__soapCall, ZEND_MN(SoapClient___call), __soap_call_args, 0) @@ -258,17 +258,17 @@ static zend_function_entry soap_client_functions[] = { {NULL, NULL, NULL} }; -static zend_function_entry soap_var_functions[] = { +static const zend_function_entry soap_var_functions[] = { SOAP_CTOR(SoapVar, SoapVar, NULL, 0) {NULL, NULL, NULL} }; -static zend_function_entry soap_param_functions[] = { +static const zend_function_entry soap_param_functions[] = { SOAP_CTOR(SoapParam, SoapParam, NULL, 0) {NULL, NULL, NULL} }; -static zend_function_entry soap_header_functions[] = { +static const zend_function_entry soap_header_functions[] = { SOAP_CTOR(SoapHeader, SoapHeader, NULL, 0) {NULL, NULL, NULL} }; |