From:             [EMAIL PROTECTED]
Operating system: All
PHP version:      4.0.4pl1
PHP Bug Type:     Feature/Change Request
Bug description:  Blank lines in includes cause session errors

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 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