summaryrefslogtreecommitdiff
path: root/ext/interbase
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/interbase
parentcc2b17d51dbaa862eea98eb3b49a83a7227fb36d (diff)
downloadphp-git-84a8bb038a26e254d6608662b16c254920388913.tar.gz
MFH: New way for check void parameters
Diffstat (limited to 'ext/interbase')
-rw-r--r--ext/interbase/interbase.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c
index 4bd5d9ef84..e1933c33b3 100644
--- a/ext/interbase/interbase.c
+++ b/ext/interbase/interbase.c
@@ -203,8 +203,8 @@ int le_link, le_plink, le_trans;
Return error message */
PHP_FUNCTION(ibase_errmsg)
{
- if (ZEND_NUM_ARGS() != 0) {
- WRONG_PARAM_COUNT;
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
}
if (IBG(sql_code) != 0) {
@@ -219,8 +219,8 @@ PHP_FUNCTION(ibase_errmsg)
Return error code */
PHP_FUNCTION(ibase_errcode)
{
- if (ZEND_NUM_ARGS() != 0) {
- WRONG_PARAM_COUNT;
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
}
if (IBG(sql_code) != 0) {