com php-src: allow passing null as the third param: ext/standard/url.c
| From: | Ferenc Kovacs | Date: | Mon, 30 Mar 2015 09:22:31 +0000 |
| Subject: | com php-src: allow passing null as the third param: ext/standard/url.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89335@lists.php.net to get a copy of this message | ||
Commit: b9b0d3db39bbd11fd7f053cfde1ffe0dbc835d5e
Author: Ferenc Kovacs <tyrael@php.net> Mon, 30 Mar 2015 11:21:39 +0200
Parents: fd01b47b8e07ebfbd39627c4a8926d40c48f93d3
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b9b0d3db39bbd11fd7f053cfde1ffe0dbc835d5e
Log:
allow passing null as the third param
Changed paths:
M ext/standard/url.c
Diff:
diff --git a/ext/standard/url.c b/ext/standard/url.c
index 58ac90e..cfc75bf 100644
--- a/ext/standard/url.c
+++ b/ext/standard/url.c
@@ -721,7 +721,7 @@ PHP_FUNCTION(get_headers)
zval *zcontext = NULL;
php_stream_context *context = NULL;
- if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|lr", &url, &url_len, &format,
&zcontext) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|lr!", &url, &url_len, &format,
&zcontext) == FAILURE) {
return;
}