backports setPhpParsing method