#47807 [NEW]: dateTime::setTimezone doc inconsistency

From: Date: Fri, 27 Mar 2009 14:05:06 +0000
Subject: #47807 [NEW]: dateTime::setTimezone doc inconsistency
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2054@lists.php.net to get a copy of this message
From: jking at jkingweb dot ca Operating system: Debian PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: dateTime::setTimezone doc inconsistency 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 bug report at http://bugs.php.net/?id=47807&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=47807&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=47807&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=47807&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=47807&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=47807&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=47807&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=47807&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=47807&r=needscript Try newer version: http://bugs.php.net/fix.php?id=47807&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=47807&r=support Expected behavior: http://bugs.php.net/fix.php?id=47807&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=47807&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=47807&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=47807&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=47807&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=47807&r=dst IIS Stability: http://bugs.php.net/fix.php?id=47807&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=47807&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=47807&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=47807&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=47807&r=mysqlcfg

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