projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (from parent 1:
145b09b
)
- parameter to set*() and add*() methods is optional
author
Michael Wallner
<mike@php.net>
Tue, 16 Aug 2005 15:12:49 +0000
(15:12 +0000)
committer
Michael Wallner
<mike@php.net>
Tue, 16 Aug 2005 15:12:49 +0000
(15:12 +0000)
http_request_object.c
patch
|
blob
|
history
diff --git
a/http_request_object.c
b/http_request_object.c
index 9efde2d9129c9da99b2fe5854eeb5683f42c3172..d6447ca066b31fe664c7f32ff9be151985680725 100644
(file)
--- a/
http_request_object.c
+++ b/
http_request_object.c
@@
-562,7
+562,7
@@
static inline void _http_request_object_set_options_subr(INTERNAL_FUNCTION_PARAM
zval *opts, **options, *new_options = NULL;
getObject(http_request_object, obj);
zval *opts, **options, *new_options = NULL;
getObject(http_request_object, obj);
- if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a/!", &new_options)) {
+ if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "
|
a/!", &new_options)) {
RETURN_FALSE;
}
RETURN_FALSE;
}
@@
-670,7
+670,7
@@
PHP_METHOD(HttpRequest, setOptions)
zval *opts = NULL, *old_opts, **opt;
getObject(http_request_object, obj);
zval *opts = NULL, *old_opts, **opt;
getObject(http_request_object, obj);
- if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "a/!", &opts)) {
+ if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "
|
a/!", &opts)) {
RETURN_FALSE;
}
RETURN_FALSE;
}