php: make curl wrappers optional

cURL wrappers are experimental and break any application/library
that rely on $http_response_header
Merge pull request #5383 from robberer/tmp1

php: make curl wrappers optional