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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 19 05:01:29 2024 UTC