]> granicus.if.org Git - php/commitdiff
Fix compiler warnings introduced by the JIT commit
authorKalle Sommer Nielsen <kalle@php.net>
Thu, 28 May 2009 20:47:01 +0000 (20:47 +0000)
committerKalle Sommer Nielsen <kalle@php.net>
Thu, 28 May 2009 20:47:01 +0000 (20:47 +0000)
sapi/cgi/cgi_main.c

index 5ce5e5919b6e64226ae34176881c809d4e535337..b5a6d9f59d7b7ff5a3a007fa2ff0c4e754404b44 100644 (file)
@@ -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"));
                        }
                }