hhvm
hhvm copied to clipboard
classname::${$varname} crashes -- assertion failure
http://svn.apache.org/repos/asf/incubator/zetacomponents/trunk/ConsoleTools/src/output.php contains code like this:
return isset( self::${$type}[$key] );
and
return ezcConsoleOutput::${$type}[$key];
Each of which cause hphp to crash because the assertion in the StaticMemberExpression constructor:
assert(exp->is(KindOfDynamicVariable));
fails.
If hiphop does not support this kind of variable variable reference, a more graceful way of reporting the problem would be nice.
Fixed in 7082171d47de06f14c3e6a938c1379ac5a986ae0
Yay, thanks!