X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_request_object.c;h=158a334bd378d5b0bf1f132bc85b507d08cc125d;hb=9152d431da4dab77d010834046f72b84044dffab;hp=761e9ca4fda6bc9c280118dfaf2e508ef848d0b0;hpb=2190567a9216095798e0268f9d61eb5ec920790e;p=m6w6%2Fext-http diff --git a/http_request_object.c b/http_request_object.c index 761e9ca..158a334 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -658,7 +658,13 @@ PHP_METHOD(HttpRequest, setOptions) array_merge(*opt, *cookies); continue; } - } else if ((!strcasecmp(key, "url")) || (!strcasecmp(key, "uri"))) { + } else if (!strcmp(key, "ssl")) { + zval **ssl; + if (SUCCESS == zend_hash_find(Z_ARRVAL_P(old_opts), "ssl", sizeof("ssl"), (void **) &ssl)) { + array_merge(*opt, *ssl); + continue; + } + }else if ((!strcasecmp(key, "url")) || (!strcasecmp(key, "uri"))) { if (Z_TYPE_PP(opt) != IS_STRING) { convert_to_string_ex(opt); }