From: vincent at vent dot be
Operating system: Windows Vista SP1
PHP version: 5.2.6
PHP Bug Type: Date/time related
Bug description: Strftime returns an empty string when using the %e conversion
specifier
Description:
------------
When I use the strftime() function to format a date, it returns an empty
string when I use the %e conversion specifier in the formatting string.
I'm using the newest version of the WAMPSERVER package (with Apache
2.2.8).
I hope this helps you any further, do not hesitate to contact me if you
have further questions. Thanks!
-Vincent
Reproduce code:
---------------
<?PHP
$time = mktime();
echo "This does not work: " . strftime("%e", $time);
echo ", while dis does work: " . strftime("%d", $time);
echo ". Adding parameters doesn't fix the problem: " . strftime("%A %e %B
%Y", $time);
?>
Expected result:
----------------
This does not work: 18, while dis does work: 18. Adding parameters doesn't
fix the problem: Monday 18 August 2008
Actual result:
--------------
This does not work: , while dis does work: 18. Adding parameters doesn't
fix the problem:
--
Edit bug report at http://bugs.php.net/?id=45847&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45847&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45847&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45847&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45847&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45847&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45847&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45847&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45847&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45847&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45847&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45847&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45847&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45847&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45847&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45847&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45847&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45847&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45847&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45847&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45847&r=mysqlcfg