JMSSecurityExtraBundle
JMSSecurityExtraBundle copied to clipboard
Broken compiled code for GetItemExpression on PHP 5.3
Assuming the foo
variable is a container parameter, the expression foo['bar']
will be compiled (once #110 allows to compile it) to $context['container']->getParameter('foo_param')['bar']
. This is broken on PHP 5.3 which does not support array dereferencing.
The solution used in the Symfony 2.4+ ExpressionLanguage component is to throw an exception at compile-time saying it cannot be compiled on 5.3