#47807 [Opn->Csd]: dateTime::setTimezone doc inconsistency

From: Date: Fri, 27 Mar 2009 16:11:54 +0000
Subject: #47807 [Opn->Csd]: dateTime::setTimezone doc inconsistency
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2055@lists.php.net to get a copy of this message
ID: 47807 Updated by: bjori@php.net Reported By: jking at jkingweb dot ca -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Debian PHP Version: Irrelevant 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. As of PHP5.3.0 it returns the DateTime object ("fluent interface"). Previous Comments: ------------------------------------------------------------------------ [2009-03-27 14:05:04] jking at jkingweb dot ca Description: ------------ Either the manual is incorrect or there is a bug in PHP 5.2.9: While the manual states that DateTime::setTimezone returns a new (modified) DateTime instance, DateTime::setTimezone actually modifies its DateTime instance and returns NULL. Examples in the manul page would suggest PHP 5.2.9 is working correctly and the manual is wrong. Reproduce code: --------------- --- From manual page: datetime.settimezone --- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=47807&edit=1

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