From: Ilia Alshanetsky Date: Tue, 11 Nov 2003 20:04:19 +0000 (+0000) Subject: MFH: Compiler warning fix (patch by Joe Orton). X-Git-Tag: php-4.3.5RC1~217 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d9bd14c18e119f84701730f9a5f8890210081d2;p=php MFH: Compiler warning fix (patch by Joe Orton). --- diff --git a/sapi/apache2handler/php_functions.c b/sapi/apache2handler/php_functions.c index 548f08eefc..0407379757 100644 --- a/sapi/apache2handler/php_functions.c +++ b/sapi/apache2handler/php_functions.c @@ -259,8 +259,8 @@ PHP_FUNCTION(apache_setenv) ctx = SG(server_context); + r = ctx->r; if (arg_count == 3 && Z_STRVAL_PP(walk_to_top)) { - r = ctx->r; while(r->prev) { r = r->prev; }