note 93851 added to function.ob-start

From: Date: Sat, 03 Oct 2009 06:56:10 +0000
Subject: note 93851 added to function.ob-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-161245@lists.php.net to get a copy of this message
(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"; ---- Server IP: 66.207.199.35 Probable Submitter: 70.79.214.121 ---- Manual Page -- http://www.php.net/manual/en/function.ob-start.php Edit -- https://master.php.net/note/edit/93851 Del: integrated -- https://master.php.net/note/delete/93851/integrated Del: useless -- https://master.php.net/note/delete/93851/useless Del: bad code -- https://master.php.net/note/delete/93851/bad+code Del: spam -- https://master.php.net/note/delete/93851/spam Del: non-english -- https://master.php.net/note/delete/93851/non-english Del: in docs -- https://master.php.net/note/delete/93851/in+docs Del: other reasons-- https://master.php.net/note/delete/93851 Reject -- https://master.php.net/note/reject/93851 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161245) next »