--TEST-- ISSUE #468 Check for same name variables assignment --SKIPIF-- --INI-- yaf.use_spl_autoload=0 yaf.use_namespace=0 --FILE-- array( "directory" => APPLICATION_PATH, "dispatcher" => array ( "catchException" => true, ), ), ); file_put_contents(APPLICATION_PATH . "/controllers/Index.php", <<getView()->assign("ref", "first-source"); } public function indexAction() { \$this->getView()->assign("ref", "second-source"); \$this->getView()->display("index/index.phtml", ["ref" => "thrid-source"]); var_dump(\$this->getViewpath()); return false; } } PHP ); file_put_contents(APPLICATION_PATH . "/views/index/index.phtml", ""); $app = new Yaf_Application($config); $app->run(); ?> --CLEAN-- --EXPECTF-- string(12) "thrid-source" string(%d) "%sapplication%cviews"