jorton          Mon Jan 24 06:44:57 2005 EDT

  Modified files:              
    /php-src/sapi/apache2handler        php_functions.c 
  Log:
  Fixed regression #31645 - only flush before running the subrequest.
  
  
http://cvs.php.net/diff.php/php-src/sapi/apache2handler/php_functions.c?r1=1.16&r2=1.17&ty=u
Index: php-src/sapi/apache2handler/php_functions.c
diff -u php-src/sapi/apache2handler/php_functions.c:1.16 
php-src/sapi/apache2handler/php_functions.c:1.17
--- php-src/sapi/apache2handler/php_functions.c:1.16    Tue Jan 11 09:01:32 2005
+++ php-src/sapi/apache2handler/php_functions.c Mon Jan 24 06:44:56 2005
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_functions.c,v 1.16 2005/01/11 14:01:32 jorton Exp $ */
+/* $Id: php_functions.c,v 1.17 2005/01/24 11:44:56 jorton Exp $ */
 
 #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS
 
@@ -66,10 +66,6 @@
        
        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);
 }
 
@@ -102,6 +98,10 @@
        php_end_ob_buffers(1 TSRMLS_CC);
        php_header(TSRMLS_C);
 
+       /* 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);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to