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);
}
php_end_ob_buffers(1 TSRMLS_CC);
php_header();
+ /* Ensure that the ap_r* layer for the main request is flushed, to
+ * work around http://issues.apache.org/bugzilla/show_bug.cgi?id=17629 */
+ ap_rflush(rr->main);
+
if (ap_run_sub_req(rr)) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to include '%s' - request execution failed", Z_STRVAL_PP(filename));
ap_destroy_sub_req(rr);