#38660 [Opn->Asn]: The "Assignment Operators"-Manual needs updating

From: Date: Wed, 30 Aug 2006 19:30:05 +0000
Subject: #38660 [Opn->Asn]: The "Assignment Operators"-Manual needs updating
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969373860@lists.php.net to get a copy of this message
ID: 38660 Updated by: colder@php.net Reported By: hahn dot seb at web dot de -Status: Open +Status: Assigned Bug Type: Documentation problem PHP Version: Irrelevant Assigned To: colder New Comment: -open+assigned Previous Comments: ------------------------------------------------------------------------ [2006-08-30 19:26:17] colder@php.net the change of behavior is explained in http://php.net/language.oop5.basic: "When assigning an already created instance of an object to a new variable, the new variable will access the same instance as the object that was assigned. This behaviour is the same when passing instances to a function. A new instance of an already created object can be made by cloning it." The optimisations about whether it's internally copied or not are completely transparent so I'm not sure documenting it is worth the possible confusion. Aynway, I'll try to come up with a better version of this paragraph ASAP. ------------------------------------------------------------------------ [2006-08-30 18:20:01] hahn dot seb at web dot de Description: ------------ On http://www.php.net/manual/en/ language.operators.assignment.php, there is nothing about PHP and how the "="-operator changed when using objects. Also the example about that a "value" is copied is not entirely true anymore and should be updated ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38660&edit=1

« previous php.doc (#969373860) next »