note 93851 deleted from function.ob-start by danbrown

From: Date: Sat, 03 Oct 2009 15:36:50 +0000
Subject: note 93851 deleted from function.ob-start by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-161249@lists.php.net to get a copy of this message
Note Submitter: dade dot brandon at gmail dot com ---- (in reply to the post beneath mine) re: I suppose the START flag problem *may* be a bug but I'm not able to upgrade before reporting since I must have the same version as my server (I'm on PHP 5.2.6 There is no bug here... as this page says, the flag is a bitfield, which means that the starting value of 3 is a combination of 1, and 2 (start and continue) Instead of using a switch, you should be using the & operator with a series of if/else if blocks i.e. if ($flag & PHP_OUTPUT_HANDLER_START) echo "PHP_OUTPUT_HANDLER_START"; else if ($flag & PHP_OUTPUT_HANDLER_CONT) echo "PHP_OUTPUT_HANDLER_CONT";

« previous php.notes (#161249) next »