From: ether80 at yahoo dot com
Operating system: Win XP & Mac 10
PHP version: 5.2CVS-2009-04-21 (CVS)
PHP Bug Type: Unknown/Other Function
Bug description: date("S") doesn't return 0th values correctly
Description:
------------
date("S") returns suffix "st" with zero, instead of "th".
Reproduce code:
---------------
---
>From manual page: function.date
---
date("30S")
date("20S")
Expected result:
----------------
30th
20th
Actual result:
--------------
30st
20st
--
Edit bug report at http://bugs.php.net/?id=48039&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48039&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48039&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48039&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48039&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=48039&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48039&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48039&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48039&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48039&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48039&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48039&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48039&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48039&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48039&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48039&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48039&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48039&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48039&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48039&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48039&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48039&r=mysqlcfg
