Req #65577 [Opn->Csd]: session_start() file:line of call just like header()

From: Date: Wed, 24 Jan 2024 21:27:56 +0000
Subject: Req #65577 [Opn->Csd]: session_start() file:line of call just like header()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246334@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65577&edit=1 ID: 65577 Updated by: nielsdos@php.net Reported by: lynch@php.net Summary: session_start() file:line of call just like header() -Status: Open +Status: Closed Type: Feature/Change Request Package: Session related Operating System: N/A PHP Version: Irrelevant -Assigned To: +Assigned To: nielsdos Block user comment: N Private report: N New Comment: Thank you for your bug report. This issue has already been fixed in the latest released version of PHP, which you can download at http://www.php.net/downloads.php This is now a thing in PHP 8.3 Previous Comments: ------------------------------------------------------------------------ [2013-08-28 21:34:18] lynch@php.net Description: ------------ When the first output happens, there is a record of that in PHP core. Then, the error message for the header() that follows output can tell the programmer exactly where in their mass of code the output started. While not quite the same scope, in a large code base, even grepping for session_start() is going to have a lot of hits. Would it be hard to notate where session_start() got called, and include in the error message... ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65577&edit=1

« previous php.bugs (#246334) next »