ext/curl/interface.c: properly handle when curl_setopt(CURLOPT_HEADERFUNCTION) is called when the handler is PHP_CURL_IGNORE already