On 19 January 2011 20:05, la...@garfieldtech.com <la...@garfieldtech.com> wrote: > So it sounds like the general answer is that if you pass a complex array to > a function by value and mess with it, data is duplicated for every item you > modify and its direct ancestors up to the root variable but not for the rest > of the tree. > > For objects, because of their "pass by handle"-type behavior you are > (usually) modifying the same data directly so there's no duplication. > > Does that sound correct? > > Related: What is the overhead of a ZVal? I'm assuming it's a fixed number > of bytes. >
http://lmgtfy.com/?q=php+zval&l=1 Regards Peter -- <hype> WWW: plphp.dk / plind.dk LinkedIn: plind BeWelcome/Couchsurfing: Fake51 Twitter: kafe15 </hype> -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php