JMSSecurityExtraBundle icon indicating copy to clipboard operation
JMSSecurityExtraBundle copied to clipboard

Broken compiled code for GetItemExpression on PHP 5.3

Open stof opened this issue 12 years ago • 1 comments

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.

stof avatar Jan 31 '13 14:01 stof

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

stof avatar Aug 20 '14 16:08 stof