modification for HHVM
fix for HHVM