summaryrefslogtreecommitdiff
path: root/ext/standard/streamsfuncs.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-03-10 22:15:36 +0000
committerFelipe Pena <felipe@php.net>2008-03-10 22:15:36 +0000
commit84a8bb038a26e254d6608662b16c254920388913 (patch)
treeb57b590da90a01ff306fbef1a6baa794ebe0571e /ext/standard/streamsfuncs.c
parentcc2b17d51dbaa862eea98eb3b49a83a7227fb36d (diff)
downloadphp-git-84a8bb038a26e254d6608662b16c254920388913.tar.gz
MFH: New way for check void parameters
Diffstat (limited to 'ext/standard/streamsfuncs.c')
-rw-r--r--ext/standard/streamsfuncs.c8
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())) {