php.net |  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 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: maande10 at vt dot edu
New email:
PHP Version: OS:

 

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

<?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:
<?php 
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 www.php.net) on 
Apache version 1.3 Win32.

Patches

Pull Requests

History

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

--Jani
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC