php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22735 phpweb/my.php tries to set cookie after headers has been sent
Submitted: 2003-03-16 04:47 UTC Modified: 2003-03-16 04:51 UTC
From: toni dot viemero at iki dot fi Assigned:
Status: Closed Package: Website problem
PHP Version: 4.3.1 OS: Windows 2000
Private report: No CVE-ID: None
 [2003-03-16 04:47 UTC] toni dot viemero at iki dot fi
I don't know if this is public yet, just spotted the file exists in php-mirrors list.

When trying to set default language:

Warning: Cannot add header information - headers already sent by (output started at /home/toni/www/fi.php.net/include/layout.inc:204) in /home/toni/www/fi.php.net/my.php on line 12

commonHeader("My PHP.net") is now sent before setcookie(), maybe move commonHeader() after all cookie stuff.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-16 04:51 UTC] goba@php.net
Hehe, it is still in testing, and not public :) But you are right. It is not an error on php.net, probably it has output buffering on... I have fixed the bug now.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 12:00:02 2026 UTC