ID: 8974
Updated by: jan
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Feature/Change Request
Operating System: All
PHP Version: 4.0.4pl1
New Comment:

technically it is an user error. to solve it either eliminate any
whitespace or call ob_start() before session_start(). the same thing
applies for header(). no bug. bogus

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

[2001-01-29 00:42:42] [EMAIL PROTECTED]

A PHP script with includes followed by commands which set headers (ie
session_start) will generate errors if include file(s) contain blank
lines. For example:

<?
  include "includes/functions.inc";
  session_start();
?>

where functions.inc contains leading or trailing blank lines will result
in an error like:

Warning: Cannot send session cache limiter - headers already sent

This problem appears to be very common (according to a search on
google), and has no doubt frustrated many PHP users.

Unfortunately this behaviour is technically 'correct', although it
should probably be fixed anyway.


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



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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to