Bug #74514 [Com]: PHP Warning: session_name(): Cannot change session name when headers already
| From: | spam2 at rhsoft dot net | Date: | Sat, 29 Apr 2017 23:01:35 +0000 |
| Subject: | Bug #74514 [Com]: PHP Warning: session_name(): Cannot change session name when headers already | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-208858@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74514&edit=1
ID: 74514
Comment by: spam2 at rhsoft dot net
Reported by: spam2 at rhsoft dot net
Summary: PHP Warning: session_name(): Cannot change session
name when headers already
Status: Feedback
Type: Bug
Package: Session related
Operating System: Linux
PHP Version: master-Git-2017-04-29 (Git)
Block user comment: N
Private report: N
New Comment:
just run a CLI script with no session started - the line from te origin report is one of many
thousands and it's intention is to work environment independet and get/send the correct cookie
for thousands of curl calls
i will rewrite the code now to "ini_get('session.name'); but that don't change
the fact that there is some BC change
Previous Comments:
------------------------------------------------------------------------
[2017-04-29 22:51:57] daverandom@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2017-04-29 22:32:21] spam2 at rhsoft dot net
Description:
------------
[30-Apr-2017 00:16:55 Europe/Vienna] PHP Warning: session_name(): Cannot change session name when
headers already sent in /Volumes/dune/www-servers/cms/cms/autotests/suite/backend.php on line 40
for *sure* not
line 40 is "$session_name = session_name();"
nobody is asking here for any change
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74514&edit=1