#24356 [Opn->Bgs]: Double warning
| From: | derick@php.net | Date: | Fri, 27 Jun 2003 10:03:04 +0000 |
| Subject: | #24356 [Opn->Bgs]: Double warning | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42618@lists.php.net to get a copy of this message | ||
ID: 24356
Updated by: derick@php.net
Reported By: michel at ziobudda dot net
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Linux Redhat 8.0
PHP Version: 5CVS-2003-06-27 (dev)
New Comment:
This is not a bug. You should get two warnings as there are two things
going wrong (like explained to you on the internals@ list). Not a bug
-> bogus
Previous Comments:
------------------------------------------------------------------------
[2003-06-27 04:58:58] michel at ziobudda dot net
Description:
------------
This little script
1
2 <?php
3 session_start();
4 ?>
5 session inizializzata
must to be produce a warning (line 1 is empty so something is send to
header). But there is a problem: there are 2 warning:
Warning: session_start(): Cannot send session cookie - headers already
sent by (output started at /home/httpd/html/LIBRO/sessioni/1.php:2) in
/home/httpd/html/LIBRO/sessioni/1.php on line 3
Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at
/home/httpd/html/LIBRO/sessioni/1.php:2) in
/home/httpd/html/LIBRO/sessioni/1.php on line 3
session inizializzata
I have no php.ini set, so there is the default.
Some value from phpinfo():
display_errors => On => On
display_startup_errors => Off => Off
error_append_string => no value => no value
error_log => no value => no value
error_prepend_string => no value => no value
error_reporting => no value => no value
html_errors => Off => On
ignore_repeated_errors => Off => Off
log_errors => Off => Off
log_errors_max_len => 1024 => 1024
track_errors => Off => Off
session.auto_start => Off => Off
session.cookie_domain => no value => no value
session.cookie_lifetime => 0 => 0
session.cookie_path => / => /
session.cookie_secure => Off => Off
bye
Reproduce code:
---------------
1
2 <?php
3 session_start();
4 ?>
5 session inizializzata
Expected result:
----------------
Only one warning.
Actual result:
--------------
Warning: session_start(): Cannot send session cookie - headers already
sent by (output started at /home/httpd/html/LIBRO/sessioni/1.php:2) in
/home/httpd/html/LIBRO/sessioni/1.php on line 3
Warning: session_start(): Cannot send session cache limiter - headers
already sent (output started at
/home/httpd/html/LIBRO/sessioni/1.php:2) in
/home/httpd/html/LIBRO/sessioni/1.php on line 3
session inizializzata
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24356&edit=1