php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22824 get ob_end_flush error when using session_name
Submitted: 2003-03-22 07:05 UTC Modified: 2003-03-22 18:34 UTC
From: passport at thedaisypatche dot net Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.0 OS: unix
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: passport at thedaisypatche dot net
New email:
PHP Version: OS:

 

 [2003-03-22 07:05 UTC] 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' 



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-22 18:34 UTC] sniper@php.net
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.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 05:01:31 2024 UTC