Doc #45847 [Opn->Csd]: strftime() returns an empty string when using the %e conversion specifier

From: Date: Sat, 23 Oct 2010 05:59:06 +0000
Subject: Doc #45847 [Opn->Csd]: strftime() returns an empty string when using the %e conversion specifier
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5342@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=45847&edit=1 ID: 45847 Updated by: kalle@php.net Reported by: vincent at vent dot be Summary: strftime() returns an empty string when using the %e conversion specifier -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: win32 only PHP Version: 5.2.6 -Assigned To: +Assigned To: kalle Block user comment: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2010-10-23 07:59:02] kalle@php.net Automatic comment from SVN on behalf of kalle Revision: http://svn.php.net/viewvc/?view=revision&revision=304637 Log: Fixed bug #45847 strftime() (returns an empty string when using the %e conversion specifier) ------------------------------------------------------------------------ [2010-09-29 19:05:48] contact at juliencrouzet dot fr Again, I think the simple way would be to replace "%e" by "%#d" IN THE C SOURCE (if on Windows) ------------------------------------------------------------------------ [2010-09-29 10:51:05] martijn dot niji at gmail dot com Can't we (or rather you) fix this by adding a nice entry in PHP docs and making it so %e gets accepted but returns the same as %d or even %#d? Especially since this has been open since 2008? By the way, this is still an issue on PHP 5.3 ------------------------------------------------------------------------ [2010-09-16 17:46:10] matt at ssradio dot com You could perhaps use the following test to avoid running into this problem: if (stristr(php_uname('s'), 'WIN')) { // Are we running under Windows? // %e conversion specifier not supported, use %#d instead } else { // OK to use %e } Hope that helps! ------------------------------------------------------------------------ [2010-07-31 07:12:10] contact dot php at juliencrouzet dot fr Wouldn't it be nice to replace "%e" by "%#d" php_strftime ? (conditionally) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=45847 -- Edit this bug report at http://bugs.php.net/bug.php?id=45847&edit=1

« previous php.doc.bugs (#5342) next »