I found something weird, seem like a bug. (Phalcon 1.2.3) Code in a view:
$foo = "Bar";
function a()
{
global $foo;
var_dump($foo);
}
var_dump($foo);
a();```
This should show
string(3) "Bar" string(3) "Bar"
but shows
string(3) "Bar" NULL