|
From: | Sébastien |
Subject: | Re: [Dolibarr-dev] Error in invoice clone |
Date: | Wed, 04 Sep 2013 09:32:32 +0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 |
Hi
I use PHP 5.4.6-1ubuntu1.3 on my dev computer and PHP 5.3.3-7+squeeze17 on production server. In php doc : http://www.php.net/manual/en/language.oop5.references.php and http://php.net/manual/en/language.oop5.cloning.php One of the key-points of PHP 5 OOP that is often mentioned is that "objects are passed by references by default". When an object is cloned, PHP 5 will perform a shallow copy of all of the object's properties. Any properties that are references to other variables, will remain references. this->lines is an array of object created by "=" operator, it's a reference. (See exemple 1 in cloning manual page) Le 03/09/2013 20:48, Destailleur Laurent a écrit :
|
[Prev in Thread] | Current Thread | [Next in Thread] |