php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #65577 session_start() file:line of call just like header()
Submitted: 2013-08-28 21:34 UTC Modified: 2024-01-24 21:27 UTC
From: lynch@php.net Assigned: nielsdos (profile)
Status: Closed Package: Session related
PHP Version: Irrelevant OS: N/A
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 + 33 = ?
Subscribe to this entry?

 
 [2013-08-28 21:34 UTC] 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...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-02-28 22:17 UTC] cmb@php.net
-Package: Unknown/Other Function +Package: Session related
 [2024-01-24 21:27 UTC] nielsdos@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nielsdos
 [2024-01-24 21:27 UTC] nielsdos@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 01:01:28 2024 UTC