From:             sander at innove dot nl
Operating system: Linux / Windows
PHP version:      4.3.8
PHP Bug Type:     Output Control
Bug description:  Output handler set in ini not used

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

-- 
Edit bug report at http://bugs.php.net/?id=29789&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29789&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29789&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29789&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=29789&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=29789&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=29789&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=29789&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=29789&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=29789&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=29789&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=29789&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=29789&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=29789&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29789&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=29789&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=29789&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=29789&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29789&r=float

Reply via email to