libshape wrapper for HHVM