summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2011-09-13 13:29:35 +0000
committerDmitry Stogov <dmitry@php.net>2011-09-13 13:29:35 +0000
commit4a25a7740d62c9ec0318001c3f6d6b3ae01d96ad (patch)
tree3e5041ac2a54ff635c9e77d97e2a14a2f1c860c6 /main/php_variables.c
parent3a3c2942d254be88b82fc871ef4fa9698e921ac7 (diff)
downloadphp-git-4a25a7740d62c9ec0318001c3f6d6b3ae01d96ad.tar.gz
Fixed ZE specific compile warnings (Bug #55629)
Diffstat (limited to 'main/php_variables.c')
-rw-r--r--main/php_variables.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index 40ad26fc9d..cfb2380210 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -617,9 +617,9 @@ static void php_autoglobal_merge(HashTable *dest, HashTable *src TSRMLS_DC)
}
/* }}} */
-static zend_bool php_auto_globals_create_server(char *name, uint name_len TSRMLS_DC);
-static zend_bool php_auto_globals_create_env(char *name, uint name_len TSRMLS_DC);
-static zend_bool php_auto_globals_create_request(char *name, uint name_len TSRMLS_DC);
+static zend_bool php_auto_globals_create_server(const char *name, uint name_len TSRMLS_DC);
+static zend_bool php_auto_globals_create_env(const char *name, uint name_len TSRMLS_DC);
+static zend_bool php_auto_globals_create_request(const char *name, uint name_len TSRMLS_DC);
/* {{{ php_hash_environment
*/
@@ -634,7 +634,7 @@ int php_hash_environment(TSRMLS_D)
}
/* }}} */
-static zend_bool php_auto_globals_create_get(char *name, uint name_len TSRMLS_DC)
+static zend_bool php_auto_globals_create_get(const char *name, uint name_len TSRMLS_DC)
{
zval *vars;
@@ -657,7 +657,7 @@ static zend_bool php_auto_globals_create_get(char *name, uint name_len TSRMLS_DC
return 0; /* don't rearm */
}
-static zend_bool php_auto_globals_create_post(char *name, uint name_len TSRMLS_DC)
+static zend_bool php_auto_globals_create_post(const char *name, uint name_len TSRMLS_DC)
{
zval *vars;
@@ -684,7 +684,7 @@ static zend_bool php_auto_globals_create_post(char *name, uint name_len TSRMLS_D
return 0; /* don't rearm */
}
-static zend_bool php_auto_globals_create_cookie(char *name, uint name_len TSRMLS_DC)
+static zend_bool php_auto_globals_create_cookie(const char *name, uint name_len TSRMLS_DC)
{
zval *vars;
@@ -707,7 +707,7 @@ static zend_bool php_auto_globals_create_cookie(char *name, uint name_len TSRMLS
return 0; /* don't rearm */
}
-static zend_bool php_auto_globals_create_files(char *name, uint name_len TSRMLS_DC)
+static zend_bool php_auto_globals_create_files(const char *name, uint name_len TSRMLS_DC)
{
zval *vars;
@@ -726,7 +726,7 @@ static zend_bool php_auto_globals_create_files(char *name, uint name_len TSRMLS_
return 0; /* don't rearm */
}
-static zend_bool php_auto_globals_create_server(char *name, uint name_len TSRMLS_DC)
+static zend_bool php_auto_globals_create_server(const char *name, uint name_len TSRMLS_DC)
{
if (PG(variables_order) && (strchr(PG(variables_order),'S') || strchr(PG(variables_order),'s'))) {
php_register_server_variables(TSRMLS_C);
@@ -764,7 +764,7 @@ static zend_bool php_auto_globals_create_server(char *name, uint name_len TSRMLS
return 0; /* don't rearm */
}
-static zend_bool php_auto_globals_create_env(char *name, uint name_len TSRMLS_DC)
+static zend_bool php_auto_globals_create_env(const char *name, uint name_len TSRMLS_DC)
{
zval *env_vars = NULL;
ALLOC_ZVAL(env_vars);
@@ -785,7 +785,7 @@ static zend_bool php_auto_globals_create_env(char *name, uint name_len TSRMLS_DC
return 0; /* don't rearm */
}
-static zend_bool php_auto_globals_create_request(char *name, uint name_len TSRMLS_DC)
+static zend_bool php_auto_globals_create_request(const char *name, uint name_len TSRMLS_DC)
{
zval *form_variables;
unsigned char _gpc_flags[3] = {0, 0, 0};