zephir
zephir copied to clipboard
Static variables in local scope
class Test
{
public static function testStaticScope()
{
static somevar;
let somevar = "static var";
var_dump(somevar);
}
}
causes Zephir\ParseException: Syntax error in
zephir commit 37630eead506e1113ea8c83dbc733ed4d28c5edd
Static variables aren't supported by Zephir
Will it be supported or I have to find a way out?
@valVk What does it mean static
var? Maybe const
?
@ovr that's something completely different http://php.net/manual/en/language.variables.scope.php#language.variables.scope.static
@steffengy o0, thanks