Re[6]: Re[2]: mixing of asign() and assign_by_ref() overwrites external vars

Dmitry Koteroff <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>
B> mea  culpa,  I  take  it back. That is the standard behaviour.
B> sigh. I'm still tired of this.
Of  course  it is the standard behavour. Or else - how this would
work?

call_user_func(array(&$obj, "method")).

If we use & in array(), it does not copy.

=&  inside  function  does  not affect to copy behavour - because
before  =&  formal  parameter  had  been  already  copied  to new
location  (from main program to formal parameter). We always work
with  copy,  EXCEPT  the  situation  we specify "&" explicitly in
function call. I thought it is logical.

-- 
Best regards,
  Dmitry Koteroff.

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.