From 5673f9f2c1e5ffc9781f1417999e8733bcf41d8c Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Wed, 26 Nov 2008 01:21:10 +0000 Subject: [PATCH] MFH: Fixed bug #42473 (ob_start php://output and headers) --- NEWS | 1 + ext/standard/php_fopen_wrapper.c | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/NEWS b/NEWS index badcb487b0..e397ce49fb 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,7 @@ PHP NEWS references). (robin_fernandes at uk dot ibm dot com) - Fixed bug #44181 (extract($a, EXTR_OVERWRITE|EXTR_REFS) can fail to create references to $a). (robin_fernandes at uk dot ibm dot com) +- Fixed bug #42473 (ob_start php://output and headers). (Arnaud) 20 Nov 2008, PHP 5.2.7RC4 - Added logging option for error_log to send directly to SAPI. (Stas) diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c index 3d42b18a49..9d7c5375c4 100644 --- a/ext/standard/php_fopen_wrapper.c +++ b/ext/standard/php_fopen_wrapper.c @@ -48,17 +48,11 @@ static int php_stream_output_close(php_stream *stream, int close_handle TSRMLS_D return 0; } -static int php_stream_output_flush(php_stream *stream TSRMLS_DC) -{ - sapi_flush(TSRMLS_C); - return 0; -} - php_stream_ops php_stream_output_ops = { php_stream_output_write, php_stream_output_read, php_stream_output_close, - php_stream_output_flush, + NULL, /* flush */ "Output", NULL, /* seek */ NULL, /* cast */ -- 2.50.1