0

I am trying to make a framework work for HHVM, but I am running into this weird error that only occurs in Hip-Hop HHVM. The same error only occurs in versions of PHP 5.2 and lower. The full error is

HipHop Fatal error: syntax error, unexpected T_CLASS in /var/www/www.unbiasly.com/libraries/prodigyview/data/PVStaticPatterns.php on line 116

Line 116 is this class here:

https://github.com/ProdigyView/ProdigyView-Core/blob/master/data/PVStaticPatterns.php#L116

Is there something different about the Reflection class in HHVM? Is it running on an older version of PHP? Can't make heads or tails of the T_CLASS error.

Devin Dixon
  • 11,553
  • 24
  • 86
  • 167

1 Answers1

1

This is a bug. class is a context sensitive keyword and the space before it makes us think you're making a class. I opened an issue: https://github.com/facebook/hiphop-php/issues/873

Paul Tarjan
  • 48,968
  • 59
  • 172
  • 213