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

From: Date: Tue, 28 Nov 2000 02:10:05 +0000
Subject: PHP 4.0 Bug #8000: Date function crashes PHP with specific format strings
Groups: php.dev 
Request: Send a blank email to php-dev+get-39342@lists.php.net to get a copy of this message
From: maande10@vt.edu Operating system: Win2000 PHP version: 4.0.3pl1 PHP Bug Type: Date/time related Bug description: Date function crashes PHP with specific format strings <?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. -- Edit Bug report at: http://bugs.php.net/?id=8000&edit=1

« previous php.dev (#39342) next »