#42713 [Opn->Csd]: Undocumented behavior when strftime() $format param is >= 1024 characters
| From: | vrana@php.net | Date: | Wed, 21 Nov 2007 15:49:14 +0000 |
| Subject: | #42713 [Opn->Csd]: Undocumented behavior when strftime() $format param is >= 1024 characters | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-241@lists.php.net to get a copy of this message | ||
ID: 42713
Updated by: vrana@php.net
Reported By: josh dot helzer at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Irrelevant
PHP Version: 5.2.4
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.
"Maximum length of this parameter is 1023 characters."
Previous Comments:
------------------------------------------------------------------------
[2007-09-19 14:35:30] josh dot helzer at gmail dot com
Description:
------------
If strlen($format) >= 1024, then the output of strftime($format, $date)
is the empty string.
I'd at least like to see a note of this appear in strftime()'s
documentation.exactly
Reproduce code:
---------------
strftime(str_repeat('a', 1024), time())
Expected result:
----------------
str_repeat('a', 1024)
Actual result:
--------------
''
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42713&edit=1