[Console] Fixed the compatibility with HHVM