From: Kalle Sommer Nielsen Date: Thu, 28 May 2009 20:47:01 +0000 (+0000) Subject: Fix compiler warnings introduced by the JIT commit X-Git-Tag: php-5.4.0alpha1~191^2~3470 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70f99a961016cac1ae5c864141a5054be3a59e73;p=php Fix compiler warnings introduced by the JIT commit --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 5ce5e5919b..b5a6d9f59d 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -625,9 +625,7 @@ 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) ) { - unsigned int new_val_len; - - if (php_register_variable_with_conv(conv, var.s, strlen(var.s), val, strlen(*val), array_ptr, filter_arg TSRMLS_CC) == FAILURE) { + if (php_register_variable_with_conv(conv, var.s, strlen(var.s), *val, strlen(*val), array_ptr, filter_arg TSRMLS_CC) == FAILURE) { php_error(E_WARNING, "Failed to decode %s array entry", (filter_arg == PARSE_ENV?"_ENV":"_SERVER")); } }