ID:               27480
 User updated by:  ricardo at aganp dot go dot gov dot br
 Reported By:      ricardo at aganp dot go dot gov dot br
 Status:           Open
 Bug Type:         Session related
 Operating System: SUSE 8
 PHP Version:      Irrelevant
 New Comment:

I'm not using ob_gzhandler. In php.ini output_buffering is set to "no
value" "no value". I put session_start() before <html><head>. Is the
first command on the page.


Previous Comments:
------------------------------------------------------------------------

[2004-03-29 04:40:13] unknown at simplemachines dot org

I believe this is bogus.  I've seen this problem before, and it has to
do with output buffering.



This will ALWAYS happen if you choose to start ob_gzhandler after
session_start().  Instead, session_start() should be called afterward.



Why?  It's actually quite simple.  Since session_start() sends headers,
it messes with output buffering... and makes it so that gzipped output
is not sent to the client properly.



Are you absolutely sure you're not using any output buffering - whether
in php.ini or in your scripts?



-[Unknown]

------------------------------------------------------------------------

[2004-03-23 15:15:39] ricardo at aganp dot go dot gov dot br

I did not decide the problem yeat. Can anyone help me?

------------------------------------------------------------------------

[2004-03-08 09:12:30] ricardo at aganp dot go dot gov dot br

we don't compile php by source. We're using the RPM version that cames
with operacional system. It's very difficult to compile a source
version because we're using 64 bits and we need to remake many
linkings.

------------------------------------------------------------------------

[2004-03-06 14:05:38] [EMAIL PROTECTED]

Are you using output buffering and can you verify the error 

with latest CVS? 

------------------------------------------------------------------------

[2004-03-03 09:35:42] ricardo at aganp dot go dot gov dot br

I have a PHP file name top.php where I open the postgre conection and
start the session. Another php file name button.php where I close my
postgre conection. This two files are put into all my php files. The
first one, top.php, on the top of my index.php and the button.php on
button, like this:

top.php

<? pg_connect($param)

   session_start();

?>



button.php

<? pg_close($con) ?>



index.php

<? include "top.php";

   HTML

   include "button.php";

   

Every the first time a load this index.php file, I need to refresh this
page and all the contents of my html are show. If I do not refresh the
page I got a blank page.

However, if I delete the session_start() the page works normally.



Itīs very difficult to change the php version here, whe are a big
corporation. But, as I said we have an older version 4.0.4pl1 at
another computer end it works perfect.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/27480

-- 
Edit this bug report at http://bugs.php.net/?id=27480&edit=1

Reply via email to