From: Pierre Joye Date: Fri, 3 Nov 2006 16:40:52 +0000 (+0000) Subject: - fix build (var.s is for zstr) X-Git-Tag: php-5.2.1RC1~354 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c002606a8888a0b85b7095c8809b136a815e0bab;p=php - fix build (var.s is for zstr) --- 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;