mixing of asign() and assign_by_ref() overwrites external vars

Sebastian Mendel <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>

$testvar = true;
$smarty = new Smarty;

$smarty->assign_by_ref('testvar', $testvar);

// bug?
var_dump($testvar);  // prints: (bool) true
$smarty->assign('testvar', false);
var_dump($testvar);  // prints: (bool) false


-- 
Sebastian Mendel

www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetime        www.sf.net/projects/phptimesheet

-- 
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.