allow passing null as the third param

This commit is contained in:
Ferenc Kovacs committed 2015-03-30 11:22:31 +02:00
1 parent fd01b47b8e
commit b9b0d3db39
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}