[PECL-CVS] [pecl-web_services-oauth] fix-curl-mime-deprecation: address reviews
[email protected] (Rasmus Lerdorf) Sat, 4 Apr 2026 22:45:20 +0000
| Newsgroups | php.pecl.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Rasmus Lerdorf (rlerdorf)
Date: 2026-04-04T18:45:16-04:00
Commit: https://github.com/php/pecl-web_services-oauth/commit/bf51022d00f44b0a1056e0a3f9020cc8e91b5332
Raw diff: https://github.com/php/pecl-web_services-oauth/commit/bf51022d00f44b0a1056e0a3f9020cc8e91b5332.diff
address reviews
Changed paths:
M oauth.c
Diff:
diff --git a/oauth.c b/oauth.c
index c8a9f73..7456db5 100644
--- a/oauth.c
+++ b/oauth.c
@@ -1082,6 +1082,10 @@ long make_req_curl(php_so_object *soo, const char *url, const smart_string *payl
sslcheck = soo->sslcheck;
curl = curl_easy_init();
+ if (!curl) {
+ soo_handle_error(soo, -1, "failed to initialize curl", NULL, NULL);
+ return -1;
+ }
if (request_headers) {
for (zend_hash_internal_pointer_reset_ex(request_headers, &pos);