* 1.16.2 (2014-XX-XX)
+ * fixed macros when using an argument named like a PHP super global (like GET or POST)
* fixed date_modify when working with DateTimeImmutable
* optimized for loops
* fixed multi-byte characters handling in the split filter
$pos = 0;
foreach ($this->getNode('arguments') as $name => $default) {
$compiler
- ->raw('$_'.$name.' = ')
+ ->raw('$__'.$name.'__ = ')
->subcompile($default)
;
$compiler
->write('')
->string($name)
- ->raw(' => $_'.$name)
+ ->raw(' => $__'.$name.'__')
->raw(",\n")
;
}
return array(
array($node, <<<EOF
// line 1
-public function getfoo(\$_foo = null, \$_bar = "Foo")
+public function getfoo(\$__foo__ = null, \$__bar__ = "Foo")
{
\$context = \$this->env->mergeGlobals(array(
- "foo" => \$_foo,
- "bar" => \$_bar,
+ "foo" => \$__foo__,
+ "bar" => \$__bar__,
));
\$blocks = array();