fix compat for PHP ABI changes