php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73287 Clone chaining feature
Submitted: 2016-10-11 08:15 UTC Modified: 2016-10-11 13:01 UTC
From: elpiel93 at gmail dot com Assigned: cmb (profile)
Status: Closed Package: Class/Object related
PHP Version: 7.0.11 OS: Ubuntu 16.04
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: elpiel93 at gmail dot com
New email:
PHP Version: OS:

 

 [2016-10-11 08:15 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-10-11 12:36 UTC] cmb@php.net
-Status: Open +Status: Verified -Assigned To: +Assigned To: cmb
 [2016-10-11 13:01 UTC] 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 13:01 UTC] cmb@php.net
-Status: Verified +Status: Closed
 [2016-10-11 13:01 UTC] cmb@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC