summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2006-11-03 16:40:52 +0000
committerPierre Joye <pajoye@php.net>2006-11-03 16:40:52 +0000
commitc002606a8888a0b85b7095c8809b136a815e0bab (patch)
tree8114aac38d7ab790cead1b4e40c3b22a3cc6f384
parentb11b08e9879c7f1d61e02c662db0bf7104ef49d0 (diff)
downloadphp-git-c002606a8888a0b85b7095c8809b136a815e0bab.tar.gz
- fix build (var.s is for zstr)
-rw-r--r--sapi/cgi/cgi_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index 54216568e1..866ccd90c7 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -491,8 +491,8 @@ void cgi_php_import_environment_variables(zval *array_ptr TSRMLS_DC)
zend_hash_get_current_data_ex(&request->env, (void **) &val, &pos) == SUCCESS;
zend_hash_move_forward_ex(&request->env, &pos)) {
int new_val_len;
- if (sapi_module.input_filter(PARSE_SERVER, var.s, val, strlen(*val), &new_val_len TSRMLS_CC)) {
- php_register_variable_safe(var.s, *val, new_val_len, array_ptr TSRMLS_CC);
+ if (sapi_module.input_filter(PARSE_SERVER, var, val, strlen(*val), &new_val_len TSRMLS_CC)) {
+ php_register_variable_safe(var, *val, new_val_len, array_ptr TSRMLS_CC);
}
}
PG(magic_quotes_gpc) = magic_quotes_gpc;