php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29789 Output handler set in ini not used
Submitted: 2004-08-22 15:34 UTC Modified: 2005-02-11 01:00 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sander at innove dot nl Assigned:
Status: No Feedback Package: Output Control
PHP Version: 4.3.8 OS: Linux / Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sander at innove dot nl
New email:
PHP Version: OS:

 

 [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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-22 15:36 UTC] sander at innove dot nl
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";
 [2005-02-11 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC