logo       

cvs: pecl /http http_request_object.c: msg#00223

php.pecl.cvs

Subject: cvs: pecl /http http_request_object.c

mike Wed Jul 27 15:59:39 2005 EDT

Modified files:
/pecl/http http_request_object.c
Log:
- ssl options were only setable rather than modifiable through setOptions

http://cvs.php.net/diff.php/pecl/http/http_request_object.c?r1=1.28&r2=1.29&ty=u
Index: pecl/http/http_request_object.c
diff -u pecl/http/http_request_object.c:1.28
pecl/http/http_request_object.c:1.29
--- pecl/http/http_request_object.c:1.28 Wed Jul 27 12:38:07 2005
+++ pecl/http/http_request_object.c Wed Jul 27 15:59:38 2005
@@ -13,7 +13,7 @@
+----------------------------------------------------------------------+
*/

-/* $Id: http_request_object.c,v 1.28 2005/07/27 16:38:07 mike Exp $ */
+/* $Id: http_request_object.c,v 1.29 2005/07/27 19:59:38 mike Exp $ */


#ifdef HAVE_CONFIG_H
@@ -658,7 +658,13 @@
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);
}



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise