Doc #69519 [Sus->Csd]: Incorrect return type for MongoDate::toDateTime

From: Date: Fri, 24 Apr 2015 09:15:54 +0000
Subject: Doc #69519 [Sus->Csd]: Incorrect return type for MongoDate::toDateTime
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12250@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69519&edit=1 ID: 69519 Updated by: salathe@php.net Reported by: austin dot emmons at modolabs dot com Summary: Incorrect return type for MongoDate::toDateTime -Status: Suspended +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: N/A PHP Version: Irrelevant Assigned To: cmb Block user comment: N Private report: 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: ------------------------------------------------------------------------ [2015-04-24 09:15:09] salathe@php.net Automatic comment from SVN on behalf of salathe Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=336640 Log: MongoDate::toDateTime() returns DateTime (patch by cmb, doc bug #69519) ------------------------------------------------------------------------ [2015-04-23 23:48:13] cmb@php.net > See above comment, looks to be fixed when I try to edit the docs, > I guess this will go out in next update to php.net Not necessarily. Patches that are submitted to the online editor still need to be reviewed by the doc team, and that may take some time. Therefore I'm marking this ticket as "suspended". ------------------------------------------------------------------------ [2015-04-23 19:29:40] austin dot emmons at modolabs dot com See above comment, looks to be fixed when I try to edit the docs, I guess this will go out in next update to php.net ------------------------------------------------------------------------ [2015-04-23 19:04:59] austin dot emmons at modolabs dot com It actually looks like this doc bug has been fixed when I go to edit the PHP doc. It must just not have been deployed to php.net yet. ------------------------------------------------------------------------ [2015-04-23 19:02:20] austin dot emmons at modolabs dot com Description: ------------ --- From manual page: http://www.php.net/mongodate.todatetime --- The method says it returns a string, but it returns a DateTime object. Test script: --------------- <?php $d = new MongoDate(strtotime("2014-11-18 11:01:25")); var_dump( $d->toDateTime() ); ?> Expected result: ---------------- I expect to see a DateTime object output. Actual result: -------------- I get a DateTime object output. The docs say it is a string though. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69519&edit=1

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