andrei Thu Oct 26 17:12:01 2006 UTC
Modified files:
/php-src/ext/standard syslog.c
Log:
Mark syslog functions with U. No upgrading is necessary -- we'll just
use runtime encoding to convert strings.
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/syslog.c?r1=1.52&r2=1.53&diff_format=u
Index: php-src/ext/standard/syslog.c
diff -u php-src/ext/standard/syslog.c:1.52 php-src/ext/standard/syslog.c:1.53
--- php-src/ext/standard/syslog.c:1.52 Tue Mar 21 00:59:41 2006
+++ php-src/ext/standard/syslog.c Thu Oct 26 17:12:00 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: syslog.c,v 1.52 2006/03/21 00:59:41 iliaa Exp $ */
+/* $Id: syslog.c,v 1.53 2006/10/26 17:12:00 andrei Exp $ */
#include "php.h"
@@ -197,12 +197,12 @@
}
/* }}} */
-/* {{{ proto void define_syslog_variables(void)
+/* {{{ proto void define_syslog_variables(void) U
Initializes all syslog-related variables */
PHP_FUNCTION(define_syslog_variables)
{
- if (ZEND_NUM_ARGS() != 0) {
- WRONG_PARAM_COUNT;
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
+ return;
}
if (!BG(syslog_started)) {
@@ -211,7 +211,7 @@
}
/* }}} */
-/* {{{ proto bool openlog(string ident, int option, int facility)
+/* {{{ proto bool openlog(string ident, int option, int facility) U
Open connection to system logger */
/*
** OpenLog("nettopp", $LOG_PID, $LOG_LOCAL1);
@@ -237,12 +237,12 @@
}
/* }}} */
-/* {{{ proto bool closelog(void)
+/* {{{ proto bool closelog(void) U
Close connection to system logger */
PHP_FUNCTION(closelog)
{
- if (ZEND_NUM_ARGS() != 0) {
- WRONG_PARAM_COUNT;
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "") == FAILURE) {
+ return;
}
closelog();
@@ -254,7 +254,7 @@
}
/* }}} */
-/* {{{ proto bool syslog(int priority, string message)
+/* {{{ proto bool syslog(int priority, string message) U
Generate a system log message */
PHP_FUNCTION(syslog)
{
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php