sniper Mon Feb 21 16:00:04 2005 EDT Modified files: /php-src/main SAPI.c Log: Nuke unused variables when PCRE is not compiled in http://cvs.php.net/diff.php/php-src/main/SAPI.c?r1=1.194&r2=1.195&ty=u Index: php-src/main/SAPI.c diff -u php-src/main/SAPI.c:1.194 php-src/main/SAPI.c:1.195 --- php-src/main/SAPI.c:1.194 Mon Feb 21 15:57:18 2005 +++ php-src/main/SAPI.c Mon Feb 21 16:00:04 2005 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: SAPI.c,v 1.194 2005/02/21 20:57:18 sniper Exp $ */ +/* $Id: SAPI.c,v 1.195 2005/02/21 21:00:04 sniper Exp $ */ #include <ctype.h> #include <sys/stat.h> @@ -610,8 +610,6 @@ 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 @@ #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)) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php