php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5596 SetCookie isn't compliant
Submitted: 2000-07-14 19:47 UTC Modified: 2000-07-14 21:22 UTC
From: brad at cimmeria dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.0 OS: FreeBSD 3.4
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: brad at cimmeria dot com
New email:
PHP Version: OS:

 

 [2000-07-14 19:47 UTC] brad at cimmeria dot com
In developing a WML based system for WAP (Wireless Web Phones) we discovered a bug with the SetCookie function.

The format according to early specifications by Netscape (http://home.netscape.com/newsref/std/cookie_spec.html) which are all in the RFC's (linked from that page), which have been adopted by most as the standard, show the format as:

Wdy, DD-Mon-YYYY HH:MM:SS GMT

However in the current PHP form it is output as:

Wdy, DD Mon YYYY HH:MM:SS GMT

Notice, the missing dashes.

That seems to work fine with current browsers, but if you've ever done anything with WML and Wireless web browsers you'd know that they are extremely picky about formatting being exact.

We are just manually setting the cookies now, but I hope this is fixed so no one else has to try and figure out why their wireless web cookies are not working.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-14 21:22 UTC] sterling at cvs dot php dot net
Fixed in CVS.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 11:00:01 2026 UTC