Bug #75227 [Fbk->Nab]: You cannot change the session module's ini settings at this time
| From: | requinix@php.net | Date: | Tue, 19 Sep 2017 14:43:05 +0000 |
| Subject: | Bug #75227 [Fbk->Nab]: You cannot change the session module's ini settings at this time | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-211249@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75227&edit=1
ID: 75227
Updated by: requinix@php.net
Reported by: k dot michalak at kstudio dot pl
Summary: You cannot change the session module's ini settings
at this time
-Status: Feedback
+Status: Not a bug
Type: Bug
Package: Session related
Operating System: Debian
PHP Version: 7.2.0RC2
Block user comment: N
Private report: N
New Comment:
The new error messages were added in relation to bug #71038.
There may not have been an error in 7.0.22 but the code would not have worked correctly: you simply
cannot change most, if not all, session information after output has begun.
Previous Comments:
------------------------------------------------------------------------
[2017-09-19 14:32:50] k dot michalak at kstudio dot pl
But in php 7.0.22 thereis no problem
------------------------------------------------------------------------
[2017-09-19 13:55:05] requinix@php.net
That's right, you can't change session settings after headers have been sent.
Why do you think this is a bug?
------------------------------------------------------------------------
[2017-09-19 13:50:44] k dot michalak at kstudio dot pl
Description:
------------
We cannot change session settings after header send
Test script:
---------------
<?php
echo "OK";
ini_set('session.use_cookies', 0);
Expected result:
----------------
OK
Actual result:
--------------
OK
Warning: ini_set(): Headers already sent. You cannot change the session module's ini settings
at this time in /home/test/test020.php on line 5
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75227&edit=1