|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-08-06 20:32 UTC] helly@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 02:00:01 2025 UTC |
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 />