summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-02-22 14:46:15 +0000
committerfoobar <sniper@php.net>2005-02-22 14:46:15 +0000
commit04e8936f21b855bb4e41c3c789aa7df6b5e92ead (patch)
treec711181caddfd5ac8787323303eda232b767570c
parentf4f090ccbe87ad5fe685927cfaef48ee7bbfb74f (diff)
downloadphp-git-04e8936f21b855bb4e41c3c789aa7df6b5e92ead.tar.gz
MFH: nuke unused variables when PCRE is not compiled statically into PHP
-rw-r--r--main/SAPI.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index 3bb102129c..930bc0c253 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -599,8 +599,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 */
@@ -608,8 +606,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)) {