From:             j_amel83 at yahoo dot com
Operating system: Windows XP 2002
PHP version:      5.0.0
PHP Bug Type:     Output Control
Bug description:  ob_start() and __destruct() method

Description:
------------
I found that if there is an ob_start() function which is calledback with
it optional 'output_callback' argument in a PHP5 page non of Destructor
method in exists objects can send any output to the standard output.

Reproduce code:
---------------
<?php
ob_start('ob_gzhandler');
class Test {
        function __construct() {
                echo 'Constructed <br />';
        }
        function __destruct() {
                echo 'Destructed <br />';
        }
}
$test = new Test();
?>

Expected result:
----------------
Constructed <br />Destructed <br />

Actual result:
--------------
Constructed <br />

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

Reply via email to