diff options
Diffstat (limited to 'ext/standard/syslog.c')
-rw-r--r-- | ext/standard/syslog.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/standard/syslog.c b/ext/standard/syslog.c index 0c1398e123..eeb6849c86 100644 --- a/ext/standard/syslog.c +++ b/ext/standard/syslog.c @@ -192,8 +192,7 @@ static void start_syslog(TSRMLS_D) PHP_FUNCTION(define_syslog_variables) { if (ZEND_NUM_ARGS() != 0) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "expects no parameters, %d given", ZEND_NUM_ARGS()); - return; + WRONG_PARAM_COUNT; } if (!BG(syslog_started)) { @@ -233,8 +232,7 @@ PHP_FUNCTION(openlog) PHP_FUNCTION(closelog) { if (ZEND_NUM_ARGS() != 0) { - php_error_docref(NULL TSRMLS_CC, E_WARNING, "expects no parameters, %d given", ZEND_NUM_ARGS()); - return; + WRONG_PARAM_COUNT; } closelog(); |