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 98671a8501..d0dc7353dc 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -566,8 +566,8 @@ PHP_FUNCTION(stream_get_transports) uint 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())) { @@ -594,8 +594,8 @@ PHP_FUNCTION(stream_get_wrappers) uint 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())) { |
