note 62869 rejected from function.ob-start by betz

From: Date: Sun, 12 Mar 2006 21:46:34 +0000
Subject: note 62869 rejected from function.ob-start by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-105386@lists.php.net to get a copy of this message
Note Submitter: ironoxid at libero dot it ---- Look at this <?php class PAGE { public function __construct(){ ob_start(NULL,NULL,false); print_r(ob_get_status()); } public function __destruct(){ print_r(ob_get_status()); } } $P = NEW PAGE; ?> The first print_r print Array ( [level] => 2 [type] => 1 [status] => 0 [name] => default output handler [del] => ) But the second print Array ( ) So, don't expect to use ob_get_contents() or similar in classes destructors.

« previous php.notes (#105386) next »