|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-02-11 11:17 UTC] derick@php.net
[2001-02-11 13:39 UTC] ctuffli at yahoo dot com
[2002-11-28 06:04 UTC] wez@php.net
[2006-10-27 01:14 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 09:00:01 2025 UTC |
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