summaryrefslogtreecommitdiff
path: root/sapi/apache2handler/php_functions.c
diff options
context:
space:
mode:
authorJoe Orton <jorton@php.net>2005-01-11 14:01:32 +0000
committerJoe Orton <jorton@php.net>2005-01-11 14:01:32 +0000
commitcb6605c1a540852dbc4ed613a2afb97f1db53936 (patch)
tree0404928564f0f5bb17234029927ed067c51b106a /sapi/apache2handler/php_functions.c
parent376d5f69102fb80bf131999576f9e796b806e897 (diff)
downloadphp-git-cb6605c1a540852dbc4ed613a2afb97f1db53936.tar.gz
Fixed bug #30446 - virtual() includes files out of sequence,
work around 2.0 subrequest/internal redirect issue.
Diffstat (limited to 'sapi/apache2handler/php_functions.c')
-rw-r--r--sapi/apache2handler/php_functions.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sapi/apache2handler/php_functions.c b/sapi/apache2handler/php_functions.c
index 4c043711e5..ff35591143 100644
--- a/sapi/apache2handler/php_functions.c
+++ b/sapi/apache2handler/php_functions.c
@@ -65,6 +65,11 @@ static request_rec *php_apache_lookup_uri(char *filename TSRMLS_DC)
}
ctx = SG(server_context);
+
+ /* Ensure that the ap_r* layer is flushed, to work around 2.0 bug:
+ * http://issues.apache.org/bugzilla/show_bug.cgi?id=17629 */
+ ap_rflush(ctx->r);
+
return ap_sub_req_lookup_uri(filename, ctx->r, ctx->r->output_filters);
}