|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-08-22 15:34 UTC] sander at innove dot nl
Description:
------------
The problem seems to occur on both Windows and Linux, using any version from 4.3.2 or higher (5.x.x not included). When I define an output_handler in my php.ini of .htaccess and turn output-buffering on, the output_handler is not called before sending the output to the browser.
Reproduce code:
---------------
[.htaccess]:
php_value auto_prepend_file foo.php
php_flag output_buffering on
php_value foo
[prepend.php]
foo(&$buffer)
{
return "foo" . $buffer;
}
[bar.php]
echo "bar";
Expected result:
----------------
foobar
Actual result:
--------------
bar
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 09:00:01 2025 UTC |
reproducing code must be: [.htaccess]: php_value auto_prepend_file foo.php php_flag output_buffering on php_value foo [foo.php] foo(&$buffer) { return "foo" . $buffer; } [bar.php] echo "bar";