You shouldn’t apply this patch manually. You should fix Apache config and remove all php_* directives instead.
php_*