#47597 [Opn->Csd]: DateTimeZone::getTransitions() takes no arguments in PHP 5.2
| From: | kalle@php.net | Date: | Sun, 08 Mar 2009 14:15:16 +0000 |
| Subject: | #47597 [Opn->Csd]: DateTimeZone::getTransitions() takes no arguments in PHP 5.2 | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-1953@lists.php.net to get a copy of this message | ||
ID: 47597
Updated by: kalle@php.net
Reported By: bugs dot php dot net at chsc dot dk
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: kalle
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:
------------------------------------------------------------------------
[2009-03-08 12:21:11] bugs dot php dot net at chsc dot dk
Description:
------------
AFAICT the two arguments for DateTimeZone::getTransitions() were added
in HEAD and on the PHP_5_3 branch, but are not available in PHP 5.2.
This isn't mentioned on the manual page:
http://dk.php.net/manual/en/datetimezone.gettransitions.php
I suggest a changelog entry is added like on other manual pages, e.g.:
Version: 5.3
Description: Added the timestamp_begin and timestamp_end parameters.
Reproduce code:
---------------
timezone_transitions_get(new DateTimeZone("Europe/Berlin"), time() -
2*365*86400, time() + 2*365*86400);
Actual result:
--------------
"Warning: timezone_transitions_get() expects exactly 1 parameter, 3
given"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47597&edit=1