summaryrefslogtreecommitdiff
path: root/sapi/apache2handler/php_functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'sapi/apache2handler/php_functions.c')
-rw-r--r--sapi/apache2handler/php_functions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/apache2handler/php_functions.c b/sapi/apache2handler/php_functions.c
index e27447df26..05b1889398 100644
--- a/sapi/apache2handler/php_functions.c
+++ b/sapi/apache2handler/php_functions.c
@@ -261,8 +261,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;
}