php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19525 Yet Another Output Buffering Issue (YAOBI)
Submitted: 2002-09-20 09:12 UTC Modified: 2002-09-23 09:23 UTC
From: sebastian@php.net Assigned: jmoore (profile)
Status: Closed Package: Output Control
PHP Version: 4CVS-2002-09-21 OS: All modules in ZTS mode
Private report: No CVE-ID: None
 [2002-09-20 09:12 UTC] sebastian@php.net
  Here is a reproducing script. It does not make sense, because it is
  ripped out of its XML_Transformer context:

    <?php
    ob_start('callback');
    
    function callback($buffer) {
    ob_start();
    eval($buffer);
    $result = ob_get_contents();
    ob_end_clean();
    return $result;
    }
    ?>
    echo 'test';

    PHP 4.2.3

      Fatal error: Cannot use output buffering in output buffering
      display handlers

    HEAD

      Neither output nor error message.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-20 09:51 UTC] derick@php.net
Both Andrei and myself were not be able to reproduce this. We both got the error message with CVS HEAD>
Perhaps it is related to settings in php.ini, or related to the SAPI?
Can you point us to the php.ini and tell which SAPI you used?

Derick
 [2002-09-20 10:40 UTC] sebastian@php.net
I tested this with both CGI and CLI SAPI modules.

My php.ini is below.

allow_call_time_pass_reference = Off
error_reporting  =  E_ALL & ~E_NOTICE
display_errors = On
display_startup_errors = On
report_memleaks = On
register_globals = Off
register_argc_argv = On
include_path = ".;c:\server\pear;c:\server\htdocs"

extension_dir = c:\home\php\php4\release_ts
;extension=php_adt.dll
;extension=php_gd.dll

session.save_path = c:\server\apache\sessions\
url_rewriter.tags = "a=href, area=href, frame=src, input=src, form=fakeentry"

docref_ext  = ".html"
docref_root = "file:///C:/Dokumente und Einstellungen/Administrator/Eigene Dateien/PHP Manual/"

 [2002-09-20 15:23 UTC] derick@php.net
Verified under Windows, Linux works fine
 [2002-09-21 12:15 UTC] derick@php.net
Just tested on Linux with a CLI build with --enable-experimental-zts and this doesn't show any error either.

Derick
 [2002-09-21 12:30 UTC] jmoore@php.net
This is a ZTS issue (Derick tested under linux with ZTS enabled and it failed).
 [2002-09-21 12:31 UTC] derick@php.net
resetting my info
 [2002-09-23 09:23 UTC] zeev@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 08:01:30 2024 UTC