diff options
author | Felipe Pena <felipe@php.net> | 2008-03-04 23:39:15 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-03-04 23:39:15 +0000 |
commit | 2818d4fc51ba9e7061c3da6cbcda6d66a7628eb5 (patch) | |
tree | 9cc2b0189fa8a3c0d37919bbe8300041c3b5116d /ext/msql/php_msql.c | |
parent | 0fde623f16eac1d92bfbeb83677924e1c95d37d8 (diff) | |
download | php-git-2818d4fc51ba9e7061c3da6cbcda6d66a7628eb5.tar.gz |
New way for check void parameters
Diffstat (limited to 'ext/msql/php_msql.c')
-rw-r--r-- | ext/msql/php_msql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/msql/php_msql.c b/ext/msql/php_msql.c index dfafc66b5b..b9af3316ca 100644 --- a/ext/msql/php_msql.c +++ b/ext/msql/php_msql.c @@ -747,8 +747,8 @@ PHP_FUNCTION(msql_list_fields) Returns the text of the error message from previous mSQL operation */ PHP_FUNCTION(msql_error) { - if (ZEND_NUM_ARGS()) { - WRONG_PARAM_COUNT; + if (zend_parse_parameters_none() == FAILURE) { + return; } RETURN_STRING(msqlErrMsg,1); } |