hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

classname::${$varname} crashes -- assertion failure

Open davidsklar opened this issue 15 years ago • 2 comments

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.

davidsklar avatar Apr 01 '11 17:04 davidsklar

Fixed in 7082171d47de06f14c3e6a938c1379ac5a986ae0

scottmac avatar Apr 05 '11 22:04 scottmac

Yay, thanks!

davidsklar avatar Apr 06 '11 13:04 davidsklar