diff options
author | Pierre Joye <pajoye@php.net> | 2006-03-08 00:43:32 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2006-03-08 00:43:32 +0000 |
commit | bb1ec86f9da24fe6b49bae68353d53ba96b7228f (patch) | |
tree | 8a395f4ff82f2bfc5dfbb143231340c80ec3d9e4 /sapi/cgi/cgi_main.c | |
parent | b7d6d705f1e471544418cf8febb62943ece9e8ce (diff) | |
download | php-git-bb1ec86f9da24fe6b49bae68353d53ba96b7228f.tar.gz |
- remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase
(calling ini_set('magic_....') returns 0|false
- get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false
- set_magic_quotes_runtime raises an E_CORE_ERROR
Diffstat (limited to 'sapi/cgi/cgi_main.c')
-rw-r--r-- | sapi/cgi/cgi_main.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 8fe28acf04..0334003b12 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -422,10 +422,7 @@ void cgi_php_import_environment_variables(zval *array_ptr TSRMLS_DC) if (!FCGX_IsCGI()) { FCGX_Request *request = (FCGX_Request *) SG(server_context); char **env, *p, *t; - int magic_quotes_gpc = PG(magic_quotes_gpc); - /* turn off magic_quotes while importing environment variables */ - PG(magic_quotes_gpc) = 0; for (env = request->envp; env != NULL && *env != NULL; env++) { p = strchr(*env, '='); if (!p) { /* malformed entry? */ @@ -435,7 +432,6 @@ void cgi_php_import_environment_variables(zval *array_ptr TSRMLS_DC) php_register_variable(t, p + 1, array_ptr TSRMLS_CC); efree(t); } - PG(magic_quotes_gpc) = magic_quotes_gpc; } /* call php's original import as a catch-all */ php_php_import_environment_variables(array_ptr TSRMLS_CC); |