From:
Operating system: Linux web20c40 2.6.31.12
PHP version: Irrelevant
Package: Date/time related
Bug Type: Bug
Bug description:English ordinal suffix display return NOTHING
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 bug report at http://bugs.php.net/bug.php?id=53607&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=53607&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=53607&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=53607&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=53607&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=53607&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=53607&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=53607&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=53607&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=53607&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=53607&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=53607&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=53607&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=53607&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=53607&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53607&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53607&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=53607&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=53607&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=53607&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=53607&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=53607&r=mysqlcfg