Bug #53607 [Opn->Fbk]: English ordinal suffix display return NOTHING
| From: | derick@php.net | Date: | Sat, 25 Dec 2010 22:18:41 +0000 |
| Subject: | Bug #53607 [Opn->Fbk]: English ordinal suffix display return NOTHING | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157321@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53607&edit=1
ID: 53607
Updated by: derick@php.net
Reported by: yespbs at gmail dot com
Summary: English ordinal suffix display return NOTHING
-Status: Open
+Status: Feedback
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:
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[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