summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-09-27 18:28:44 +0000
committerDmitry Stogov <dmitry@php.net>2007-09-27 18:28:44 +0000
commit8146078f7bbbe4f4799e1a154ea450c90c855728 (patch)
tree46cb160985407d24ff3a9d485a90e88fee4cdbb6 /sapi
parent98a2c03808f73be0c08bfe654b985483ccb8d6bc (diff)
downloadphp-git-8146078f7bbbe4f4799e1a154ea450c90c855728.tar.gz
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
Diffstat (limited to 'sapi')
-rw-r--r--sapi/aolserver/aolserver.c2
-rw-r--r--sapi/apache/php_apache.c2
-rw-r--r--sapi/apache2filter/php_functions.c2
-rw-r--r--sapi/apache2handler/php_functions.c2
-rw-r--r--sapi/apache_hooks/php_apache.c4
-rw-r--r--sapi/cgi/cgi_main.c2
-rw-r--r--sapi/cli/php_cli.c2
-rw-r--r--sapi/continuity/capi.c2
-rw-r--r--sapi/embed/php_embed.c2
-rw-r--r--sapi/milter/php_milter.c2
-rw-r--r--sapi/nsapi/nsapi.c2
11 files changed, 12 insertions, 12 deletions
diff --git a/sapi/aolserver/aolserver.c b/sapi/aolserver/aolserver.c
index 37bb5aab29..0b432f3e4a 100644
--- a/sapi/aolserver/aolserver.c
+++ b/sapi/aolserver/aolserver.c
@@ -240,7 +240,7 @@ static void php_info_aolserver(ZEND_MODULE_INFO_FUNC_ARGS)
PHP_FUNCTION(getallheaders);
-static zend_function_entry aolserver_functions[] = {
+static const zend_function_entry aolserver_functions[] = {
PHP_FE(getallheaders, NULL)
{NULL, NULL, NULL}
};
diff --git a/sapi/apache/php_apache.c b/sapi/apache/php_apache.c
index 868c4c3d9d..e5e3d3eba8 100644
--- a/sapi/apache/php_apache.c
+++ b/sapi/apache/php_apache.c
@@ -56,7 +56,7 @@ PHP_FUNCTION(apache_reset_timeout);
PHP_MINFO_FUNCTION(apache);
-zend_function_entry apache_functions[] = {
+const zend_function_entry apache_functions[] = {
PHP_FE(virtual, NULL)
PHP_FE(apache_request_headers, NULL)
PHP_FE(apache_note, NULL)
diff --git a/sapi/apache2filter/php_functions.c b/sapi/apache2filter/php_functions.c
index 9340204816..b96a08d417 100644
--- a/sapi/apache2filter/php_functions.c
+++ b/sapi/apache2filter/php_functions.c
@@ -359,7 +359,7 @@ PHP_MINFO_FUNCTION(apache)
php_info_print_table_end();
}
-static zend_function_entry apache_functions[] = {
+static const zend_function_entry apache_functions[] = {
PHP_FE(apache_lookup_uri, NULL)
PHP_FE(virtual, NULL)
PHP_FE(apache_request_headers, NULL)
diff --git a/sapi/apache2handler/php_functions.c b/sapi/apache2handler/php_functions.c
index 277046b33b..e7a33c602c 100644
--- a/sapi/apache2handler/php_functions.c
+++ b/sapi/apache2handler/php_functions.c
@@ -478,7 +478,7 @@ PHP_MINFO_FUNCTION(apache)
}
}
-static zend_function_entry apache_functions[] = {
+static const zend_function_entry apache_functions[] = {
PHP_FE(apache_lookup_uri, NULL)
PHP_FE(virtual, NULL)
PHP_FE(apache_request_headers, NULL)
diff --git a/sapi/apache_hooks/php_apache.c b/sapi/apache_hooks/php_apache.c
index c14bc722ef..fcc5b0578b 100644
--- a/sapi/apache_hooks/php_apache.c
+++ b/sapi/apache_hooks/php_apache.c
@@ -60,7 +60,7 @@ PHP_FUNCTION(apache_get_modules);
PHP_MINFO_FUNCTION(apache);
-zend_function_entry apache_functions[] = {
+const zend_function_entry apache_functions[] = {
PHP_FE(virtual, NULL)
PHP_FE(apache_request_headers, NULL)
PHP_FE(apache_note, NULL)
@@ -1286,7 +1286,7 @@ PHP_FUNCTION(apache_request_send_header_field)
/* {{{ php_apache_request_class_functions
*/
-static zend_function_entry php_apache_request_class_functions[] = {
+static const zend_function_entry php_apache_request_class_functions[] = {
/* string slots */
PHP_FALIAS(args, apache_request_args, NULL)
PHP_FALIAS(boundary, apache_request_boundary, NULL)
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index afddf75a50..ee6712c00d 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -623,7 +623,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_dl, 0)
ZEND_END_ARG_INFO()
/* }}} */
-static zend_function_entry additional_functions[] = {
+static const zend_function_entry additional_functions[] = {
ZEND_FE(dl, arginfo_dl)
{NULL, NULL, NULL}
};
diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c
index 5fe2a91484..7b8e096620 100644
--- a/sapi/cli/php_cli.c
+++ b/sapi/cli/php_cli.c
@@ -415,7 +415,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_dl, 0)
ZEND_END_ARG_INFO()
/* }}} */
-static zend_function_entry additional_functions[] = {
+static const zend_function_entry additional_functions[] = {
ZEND_FE(dl, arginfo_dl)
{NULL, NULL, NULL}
};
diff --git a/sapi/continuity/capi.c b/sapi/continuity/capi.c
index cb99b86171..e1fc659e43 100644
--- a/sapi/continuity/capi.c
+++ b/sapi/continuity/capi.c
@@ -80,7 +80,7 @@ PHP_FUNCTION(continuity_virtual);
PHP_FUNCTION(continuity_request_headers);
PHP_FUNCTION(continuity_response_headers);
-zend_function_entry continuity_functions[] = {
+const zend_function_entry continuity_functions[] = {
{NULL, NULL, NULL}
};
diff --git a/sapi/embed/php_embed.c b/sapi/embed/php_embed.c
index c2469e6eb6..53316ad2b7 100644
--- a/sapi/embed/php_embed.c
+++ b/sapi/embed/php_embed.c
@@ -146,7 +146,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_dl, 0)
ZEND_END_ARG_INFO()
/* }}} */
-static zend_function_entry additional_functions[] = {
+static const zend_function_entry additional_functions[] = {
ZEND_FE(dl, arginfo_dl)
{NULL, NULL, NULL}
};
diff --git a/sapi/milter/php_milter.c b/sapi/milter/php_milter.c
index 373d7fd70d..5c6e393c4f 100644
--- a/sapi/milter/php_milter.c
+++ b/sapi/milter/php_milter.c
@@ -770,7 +770,7 @@ PHP_MINFO_FUNCTION(milter)
/* {{{ milter_functions[]
*/
-static zend_function_entry milter_functions[] = {
+static const zend_function_entry milter_functions[] = {
PHP_FE(smfi_setflags, NULL)
PHP_FE(smfi_settimeout, NULL)
PHP_FE(smfi_getsymval, NULL)
diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c
index 30da49a2e0..5c8a87d214 100644
--- a/sapi/nsapi/nsapi.c
+++ b/sapi/nsapi/nsapi.c
@@ -172,7 +172,7 @@ ZEND_DECLARE_MODULE_GLOBALS(nsapi)
*
* Every user visible function must have an entry in nsapi_functions[].
*/
-zend_function_entry nsapi_functions[] = {
+const zend_function_entry nsapi_functions[] = {
PHP_FE(nsapi_virtual, NULL) /* Make subrequest */
PHP_FALIAS(virtual, nsapi_virtual, NULL) /* compatibility */
PHP_FE(nsapi_request_headers, NULL) /* get request headers */