|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-25 23:18 UTC] derick@php.net
-Status: Open
+Status: Feedback
[2010-12-25 23:18 UTC] derick@php.net
[2010-12-26 08:21 UTC] yespbs at gmail dot com
-Status: Feedback
+Status: Open
[2010-12-26 08:21 UTC] yespbs at gmail dot com
[2010-12-26 15:41 UTC] derick@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: derick
[2010-12-26 15:41 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 08:00:02 2025 UTC |
Description: ------------ PHP Version 5.2.9 Server API CGI I have faced a typical php bug in date formatting on a server, The server return NOTHING for English Ordinal Suffix (st, nd, rd or th) when used with Day of the month(j) formatter. Below is the code <?php error_reporting(1); echo 'testing format [m/d/Y h:i:s]'. date('m/d/Y h:i:s');// ok echo 'testing format [jS F, Y]'. date('jS F, Y');// NOTHING shows ?> While the first format shows correct value, the later shows nothing, if used alone ( without the first formatting line) Server generates error. Is is php bug or server problem. Many thanks for your time. Regards Test script: --------------- <?php error_reporting(1); echo 'testing format [m/d/Y h:i:s]'. date('m/d/Y h:i:s');// ok echo 'testing format [jS F, Y]'. date('jS F, Y');// NOTHING shows ?>