summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2005-02-21 21:00:04 (GMT)
committerfoobar <sniper@php.net>2005-02-21 21:00:04 (GMT)
commit498cce1f80a8f26558bca784b276ee4698e4b31b (patch)
treeb19ab9348ac8477948753ce52b14e55a492ba671 /main
parent42599f8191444d9f0943d9b31522f53f75b181a5 (diff)
downloadphp-498cce1f80a8f26558bca784b276ee4698e4b31b.tar.gz
Nuke unused variables when PCRE is not compiled in
Diffstat (limited to 'main')
-rw-r--r--main/SAPI.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index a7ab5ff..6b4c531 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -610,8 +610,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 */
@@ -619,8 +617,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)) {