PHP 4.0 Bug #8000 Updated: Date function crashes PHP with specific format strings
| From: | sniper@php.net | Date: | Thu, 07 Dec 2000 14:32:54 +0000 |
| Subject: | PHP 4.0 Bug #8000 Updated: Date function crashes PHP with specific format strings | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40375@lists.php.net to get a copy of this message | ||
ID: 8000
Updated by: sniper
Reported By: maande10@vt.edu
Status: Duplicate
Bug Type: Date/time related
Assigned To:
Comments:
Dup of #7963
Previous Comments:
---------------------------------------------------------------------------
[2000-11-27 21:10:05] maande10@vt.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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8000