|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-07-20 06:53 UTC] krakjoe@php.net
[2017-07-20 06:53 UTC] krakjoe@php.net
-Status: Open
+Status: Closed
[2017-07-20 06:54 UTC] krakjoe@php.net
[2017-08-26 03:17 UTC] wapinet at mail dot ru
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Jan 07 01:00:01 2026 UTC |
Description: ------------ If a session start is not supposed to output any headers, it should not fail in the case if response headers have been already sent. The script below works on PHP 7.1 and older versions but doesn't work on PHP 7.2. The same happens when calling session_id($id) before session_start(). Seems similar to #55267. Test script: --------------- <?php ini_set('session.use_cookies', false); ini_set('session.cache_limiter', false); echo '.'; session_start(); Expected result: ---------------- No warning triggered. Actual result: -------------- Warning: session_start(): Cannot start session when headers already sent in test.php on line 8 Call Stack: 0.0001 397720 1. {main}() test.php:0 0.0001 398128 2. session_start() test.php:8