|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8000 Date function crashes PHP with specific format strings
Submitted: 2000-11-27 21:10 UTC Modified: 2001-01-13 20:41 UTC
From: maande10 at vt dot edu Assigned:
Status: Closed Package: Date/time related
PHP Version: 4.0.3pl1 OS: Win2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: maande10 at vt dot edu
New email:
PHP Version: OS:


 [2000-11-27 21:10 UTC] maande10 at vt dot edu
printf("%s<br>", date("l, F dS, Y: g:i A T"));
That crashes PHP.

printf("%s<br>", date("l, F dS, Y g:i A T"));
That doesn't crash PHP.  Notice that there is no colon after the "Y" in this one.

PHP will also crash in this case:
printf("%s<br>", date("l, F dS, Y"));
printf("%s<br>", date("g:i A T"));

I'm using the CGI executable version of PHP Win32 (downloaded as a binary from on 
Apache version 1.3 Win32.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-07 09:32 UTC]
Dup of #7963
 [2001-01-13 20:41 UTC]
This is fixed in CVS.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 22 22:01:28 2024 UTC