Edit report at http://bugs.php.net/bug.php?id=53607&edit=1
ID: 53607 User updated by: yespbs at gmail dot com Reported by: yespbs at gmail dot com Summary: English ordinal suffix display return NOTHING -Status: Feedback +Status: Open Type: Bug Package: Date/time related Operating System: Linux web20c40 2.6.31.12 PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Thanks derick I already tried with other versions upto php 5.3 including 5.2.10, on all occasions it is found working, as I can not get hold of 5.2.9 anywhere, I have to report this to the hosting support to upgrade. Please do let me know if you can confirm that this only exists in 5.2.9 However I am referring this id and asking the hosting support to upgrade. Regards Previous Comments: ------------------------------------------------------------------------ [2010-12-25 23:18:39] [email protected] Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2010-12-24 21:56:49] yespbs at gmail dot com 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 ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53607&edit=1
