cvs: pecl /http http_request_object.c
| From: | Michael Wallner | Date: | Mon, 23 Oct 2006 14:31:54 +0000 |
| Subject: | cvs: pecl /http http_request_object.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-6534@lists.php.net to get a copy of this message | ||
mike Mon Oct 23 14:31:54 2006 UTC
Modified files:
/pecl/http http_request_object.c
Log:
- allow options parameter to be NULL
http://cvs.php.net/viewvc.cgi/pecl/http/http_request_object.c?r1=1.139&r2=1.140&diff_format=u
Index: pecl/http/http_request_object.c
diff -u pecl/http/http_request_object.c:1.139 pecl/http/http_request_object.c:1.140
--- pecl/http/http_request_object.c:1.139 Mon Oct 9 11:01:22 2006
+++ pecl/http/http_request_object.c Mon Oct 23 14:31:54 2006
@@ -10,7 +10,7 @@
+--------------------------------------------------------------------+
*/
-/* $Id: http_request_object.c,v 1.139 2006/10/09 11:01:22 mike Exp $ */
+/* $Id: http_request_object.c,v 1.140 2006/10/23 14:31:54 mike Exp $ */
#define HTTP_WANT_CURL
#include "php_http.h"
@@ -798,7 +798,7 @@
zval *options = NULL;
SET_EH_THROW_HTTP();
- if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sla", &URL,
&URL_len, &meth, &options)) {
+ if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sla!", &URL,
&URL_len, &meth, &options)) {
if (URL) {
UPD_STRL(url, URL, URL_len);
}