PHP 4.0 Bug #8000 Updated: Date function crashes PHP with specific format strings

From: Date: Sun, 14 Jan 2001 01:41:32 +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-44024@lists.php.net to get a copy of this message
ID: 8000 Updated by: sniper Reported By: maande10@vt.edu Old-Status: Duplicate Status: Closed Bug Type: Date/time related Assigned To: Comments: This is fixed in CVS. --Jani Previous Comments: --------------------------------------------------------------------------- [2000-12-07 09:32:54] sniper@php.net Dup of #7963 --------------------------------------------------------------------------- [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

« previous php.dev (#44024) next »