Doc #75946 [Ver->Csd]: session_start() fails after fastcgi_finish_request() (FPM)
| From: | cmb@php.net | Date: | Sun, 11 Feb 2018 13:36:58 +0000 |
| Subject: | Doc #75946 [Ver->Csd]: session_start() fails after fastcgi_finish_request() (FPM) | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15425@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75946&edit=1
ID: 75946
Updated by: cmb@php.net
Reported by: rafal dot janiczek at gmail dot com
Summary: session_start() fails after fastcgi_finish_request()
(FPM)
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: Session related
Operating System: Linux
PHP Version: 7.1.14
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2018-02-11 13:36:33] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=344212
Log: Fix bug #75946 (session_start() fails after fastcgi_finish_request() (FPM))
------------------------------------------------------------------------
[2018-02-11 13:14:35] cmb@php.net
Indeed, even though there is an explicit mention in UPGRADING[1],
this wasn't incorporated in the changelog.
[1] <https://github.com/php/php-src/blob/PHP-7.1.0/UPGRADING#L136-L137>
------------------------------------------------------------------------
[2018-02-10 15:33:53] rafal dot janiczek at gmail dot com
Ok, propoably this report is related with #71038.
But if it was major fix for sessions why there's no any info on session_start page or "PHP
7.1.0 Release Announcement" or "Backward incompatible changes"?
Please just write it in changelog box for session_start().
------------------------------------------------------------------------
[2018-02-10 13:38:30] spam2 at rhsoft dot net
jesus christ when you get a warning "headers already sent" it did NOT work because the
whole purpose of session_start() is send the PHPSESSID cookie to the client
again: you thought it worked but it never did and now you get the truth additional to the warning -
so say thank you that a major bug was fixed and points out broken code you never realized how broken
it is
------------------------------------------------------------------------
[2018-02-10 11:10:07] rafal dot janiczek at gmail dot com
You'are right, it's bad code, but this piece of code was working since php-5.5.21(first
time) and checking on 3v4l it was working since 4.3.x. Of course always with warning (headers
already sent), but was working. Now it's problem with php 7.1 and 7.2. For me it's bug or
regression.
Maybe it's good to inform about that on http://php.net/manual/en/function.session-start.php
? There is nothing about that change in >7.1 series.
https://3v4l.org/A06Gr
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=75946
--
Edit this bug report at https://bugs.php.net/bug.php?id=75946&edit=1