php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53607 English ordinal suffix display return NOTHING
Submitted: 2010-12-24 21:56 UTC Modified: 2010-12-26 15:41 UTC
From: yespbs at gmail dot com Assigned: derick (profile)
Status: Closed Package: Date/time related
PHP Version: Irrelevant OS: Linux web20c40 2.6.31.12
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yespbs at gmail dot com
New email:
PHP Version: OS:

 

 [2010-12-24 21:56 UTC] 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
?>


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-25 23:18 UTC] derick@php.net
-Status: Open +Status: Feedback
 [2010-12-25 23:18 UTC] derick@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/
 [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
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
 [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
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

5.2.9 is close to two years old -> upgrade
http://www.php.net/releases/#5.2.9
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 12:01:29 2024 UTC