#22824 [Opn->Bgs]: get ob_end_flush error when using session_name

From: Date: Sun, 23 Mar 2003 00:34:13 +0000
Subject: #22824 [Opn->Bgs]: get ob_end_flush error when using session_name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-36197@lists.php.net to get a copy of this message
ID: 22824 Updated by: sniper@php.net Reported By: passport at thedaisypatche dot net -Status: Open +Status: Bogus Bug Type: Session related Operating System: unix PHP Version: 4.3.0 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the existing bug instead. Thank you for your interest in PHP. Try searching the older reports, there's already report about this. Previous Comments: ------------------------------------------------------------------------ [2003-03-22 07:05:45] passport at thedaisypatche dot net I have a page that looks like this: session_name("MyName"); session_start(); include("afile"); ... more stuff here include("adiffernetfile"); in the "afile" is the command ob_start("ob_gzhandler"); in the "adifferentfile" is the command ob_end_flush(); when I open a browser and go to the page, the first time the page runs it gives an error: Warning: ob_gzhandler() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in /blahblah/includes/adifferentfile.inc on line 23 on subsequent reloads this error does not come up. If I comment out the session_name("MyName"); line, the error does not come up. //======================== './configure' '--with-apxs=/usr/local/apache/1.3.27/bin/apxs' '--with-config-file-path=/usr/local/lib' '--disable-debug' '--enable-memory-limit' '--enable-zend-multibyte' '--with-regex=system' '--enable-mbstring=all' '--enable-mbregex' '--enable-dio' '--enable-versioning' '--with-msql=shared' '--with-bz2=shared,/usr' '--enable-sockets=shared' '--with-pcre-regex=/usr/local' '--with-iconv=shared,/usr/local' '--with-gdbm=shared,/usr/local' '--with-db3=shared,/usr/local' '--with-gettext=shared,/usr/local' '--with-curl=shared,/usr/local/curl' '--with-openssl=shared,/usr' '--with-pgsql=shared,/usr/local/pgsql' '--with-openssl=/usr' '--with-gd=shared,yes' '--enable-gd-native-ttf=shared' '--with-freetype-dir=shared,/usr/local' '--with-ttf=shared,/usr/local' '--with-jpeg-dir=shared,/usr/local' '--with-png-dir=shared,/usr/local' '--with-t1lib=shared,/usr/local' '--with-zlib=/usr' '--with-zlib-dir=/usr' '--enable-ftp=shared' '--with-imap=shared,/usr/local' '--with-mcrypt=shared,/usr/local' '--with-mhash=shared,/usr/local' '--with-dom=shared,/usr/local/libxml2' '--with-dom-xslt=shared,/usr/local' '--with-dom-exslt=shared,/usr/local' '--with-mysql=shared,/usr/local/mysql' '--with-zlib-dir=/usr' ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22824&edit=1

« previous php.bugs (#36197) next »