diff options
Diffstat (limited to 'ext/standard/streamsfuncs.c')
-rw-r--r-- | ext/standard/streamsfuncs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 699c596315..ecd18f9aa9 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -520,8 +520,8 @@ PHP_FUNCTION(stream_get_transports) int stream_xport_len; ulong num_key; - if (ZEND_NUM_ARGS() != 0) { - WRONG_PARAM_COUNT; + if (zend_parse_parameters_none() == FAILURE) { + return; } if ((stream_xport_hash = php_stream_xport_get_hash())) { @@ -548,8 +548,8 @@ PHP_FUNCTION(stream_get_wrappers) int key_flags, stream_protocol_len = 0; ulong num_key; - if (ZEND_NUM_ARGS() != 0) { - WRONG_PARAM_COUNT; + if (zend_parse_parameters_none() == FAILURE) { + return; } if ((url_stream_wrappers_hash = php_stream_get_url_stream_wrappers_hash())) { |