]> granicus.if.org Git - php/commitdiff
MFH: nuke unused variables when PCRE is not compiled statically into PHP
authorfoobar <sniper@php.net>
Tue, 22 Feb 2005 14:46:24 +0000 (14:46 +0000)
committerfoobar <sniper@php.net>
Tue, 22 Feb 2005 14:46:24 +0000 (14:46 +0000)
main/SAPI.c

index 2ac652cf0830c55e43657d6254ea26e396b752d8..b5d896d2471b461b13ad472b95ab80e1672c6edc 100644 (file)
@@ -595,8 +595,6 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC)
                                        sapi_update_response_code(302 TSRMLS_CC);
                                }
                        } else if (!STRCASECMP(header_line, "WWW-Authenticate")) { /* HTTP Authentication */
-                               int newlen;
-                               char *result, *newheader;
 
                                sapi_update_response_code(401 TSRMLS_CC); /* authentication-required */
 
@@ -604,8 +602,8 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC)
 #if (HAVE_PCRE || HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
                                {
                                        zval *repl_temp;
-                                       char *ptr = colon_offset+1;
-                                       int ptr_len=0, result_len = 0;
+                                       char *ptr = colon_offset+1, *result, *newheader;
+                                       int ptr_len=0, result_len = 0, newlen = 0;
 
                                        /* skip white space */
                                        while (isspace(*ptr)) {