diff options
author | Felipe Pena <felipe@php.net> | 2008-03-10 22:15:36 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-03-10 22:15:36 +0000 |
commit | 84a8bb038a26e254d6608662b16c254920388913 (patch) | |
tree | b57b590da90a01ff306fbef1a6baa794ebe0571e /ext/standard/streamsfuncs.c | |
parent | cc2b17d51dbaa862eea98eb3b49a83a7227fb36d (diff) | |
download | php-git-84a8bb038a26e254d6608662b16c254920388913.tar.gz |
MFH: New way for check void parameters
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())) { |