PHP compat fixed