Further refinement
Remove php_flag line, it may cause errors in some environments, add it locally if necessary