Edit report at http://bugs.php.net/bug.php?id=53607&edit=1

 ID:                 53607
 Updated by:         [email protected]
 Reported by:        yespbs at gmail dot com
 Summary:            English ordinal suffix display return NOTHING
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            Date/time related
 Operating System:   Linux web20c40 2.6.31.12
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        derick
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[2010-12-26 08:21:59] 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-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

Reply via email to