Bug #12952: Output buffering misbehaving

From: Date: Fri, 24 Aug 2001 21:24:37 +0000
Subject: Bug #12952: Output buffering misbehaving
Groups: php.dev 
Request: Send a blank email to php-dev+get-64285@lists.php.net to get a copy of this message
From: ryan_sokol@ihearditwas.com Operating system: RedHat 6.2 PHP version: 4.0.6 PHP Bug Type: Session related Bug description: Output buffering misbehaving Here's my configure line: './configure' '-with-apxs' '--enable-track-vars' '--disable-debug' '--enable-sysvshm' '-enable-sysvsem' '-enable-trans-sid' I have been running PHP 4.0.4pl1 with no problems for about 5 months and tried to move to PHP 4.0.6. The code below produced an undisplayable page in 4.0.6 but works fine in 4.0.4pl1: /////////////////////////////////////////////////////////// ob_start(); if (sessionResume() == false) { // some error handling code here include "error.fre"; return; } else { // some more logic here if($loginTo != '') // means would rather go to another page, probably from bookmark header("Location: " . $loginTo . "&PHPSESS=" . session_id()); else include "member-home.fre"; } ob_end_flush(); /////////////////////////////////////////////////////////// What happens when I run this code is IE gives me a "Page cannot be displayed" screen. I am positive this has something to do with 4.0.6 because I had 4.0.4pl1 installed, then upgraded to 4.0.6 and got the error, and then downgraded back to 4.0.4pl1 (where it worked properly again) without changing one line of code or anything in php.ini. Sorry I can't offer any suggestions, but let me know if I can help track this one down. -- Edit bug report at: http://bugs.php.net/?id=12952&edit=1

« previous php.dev (#64285) next »