cvs: php-src /ext/standard syslog.c

From: Date: Sun, 13 Jun 2004 17:04:36 +0000
Subject: cvs: php-src /ext/standard syslog.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-27621@lists.php.net to get a copy of this message
iliaa Sun Jun 13 13:04:36 2004 EDT Modified files: /php-src/ext/standard syslog.c Log: Standardize error reporting. http://cvs.php.net/diff.php/php-src/ext/standard/syslog.c?r1=1.45&r2=1.46&ty=u Index: php-src/ext/standard/syslog.c diff -u php-src/ext/standard/syslog.c:1.45 php-src/ext/standard/syslog.c:1.46 --- php-src/ext/standard/syslog.c:1.45 Thu Jan 8 03:17:34 2004 +++ php-src/ext/standard/syslog.c Sun Jun 13 13:04:36 2004 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: syslog.c,v 1.45 2004/01/08 08:17:34 andi Exp $ */ +/* $Id: syslog.c,v 1.46 2004/06/13 17:04:36 iliaa Exp $ */ #include "php.h" @@ -192,8 +192,7 @@ 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(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();

« previous php.cvs (#27621) next »