Changes to error message detection to handle the differences in HHVM