Doc #73287 [Ver->Csd]: Clone chaining feature

From: Date: Tue, 11 Oct 2016 13:01:30 +0000
Subject: Doc #73287 [Ver->Csd]: Clone chaining feature
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14007@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73287&edit=1 ID: 73287 Updated by: cmb@php.net Reported by: elpiel93 at gmail dot com Summary: Clone chaining feature -Status: Verified +Status: Closed Type: Documentation Problem Package: Class/Object related Operating System: Ubuntu 16.04 PHP Version: 7.0.11 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: ------------------------------------------------------------------------ [2016-10-11 13:01:02] cmb@php.net Automatic comment from SVN on behalf of cmb Revision: http://svn.php.net/viewvc/?view=revision&revision=340428 Log: Fix ##73287: Clone chaining feature We also document that this is possible for new as of PHP 5.4.0. ------------------------------------------------------------------------ [2016-10-11 08:15:33] elpiel93 at gmail dot com Description: ------------ --- From manual page: http://www.php.net/language.oop5.cloning --- Can you add information for PHP 7 new features and the manual page for cloning that chaining clone is possible in v7. Test script: --------------- $dateTime = new DateTime(); $cloneAndFormat = (clone $dateTime)->format('Y'); // this was not possible prior PHP 7 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73287&edit=1

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