PHP 4.0 Bug #9212: fpassthru ignoring output buffering

From: Date: Sun, 11 Feb 2001 16:06:21 +0000
Subject: PHP 4.0 Bug #9212: fpassthru ignoring output buffering
Groups: php.dev 
Request: Send a blank email to php-dev+get-46371@lists.php.net to get a copy of this message
From: ctuffli@yahoo.com Operating system: Linux 2.2.12-20 PHP version: 4.0.4 PHP Bug Type: Output Control Bug description: fpassthru ignoring output buffering When fpassthru() is used within an ob_start / ob_end_clean block, a subsequent call to header() fails because headers have already been sent. The following script reproduces the problem: <?php $fd = fopen(__FILE__, "r"); ob_start(); fpassthru($fd); ob_end_clean(); header("X-Test: fpassthru already sent headers"); ?> Ran as cgi (ie 'php head.php'), but the apache module exhibits the same problem. This problem may be similar to bug #8807 ./configure --with-apxs=/usr/local/etc/httpd/bin/apxs --enable-versioning --with-mysql --enable-track-vars no php.ini is used -- Edit Bug report at: http://bugs.php.net/?id=9212&edit=1

« previous php.dev (#46371) next »