From: passport at thedaisypatche dot net
Operating system: unix
PHP version: 4.3.0
PHP Bug Type: Session related
Bug description: get ob_end_flush error when using session_name
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 bug report at http://bugs.php.net/?id=22824&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22824&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22824&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22824&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22824&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22824&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22824&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22824&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22824&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22824&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22824&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22824&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22824&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22824&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22824&r=gnused