summaryrefslogtreecommitdiff
path: root/ext/standard/syslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/syslog.c')
-rw-r--r--ext/standard/syslog.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/standard/syslog.c b/ext/standard/syslog.c
index 75c33e0599..fec4ec496b 100644
--- a/ext/standard/syslog.c
+++ b/ext/standard/syslog.c
@@ -1,6 +1,6 @@
/*
+----------------------------------------------------------------------+
- | PHP Version 5 |
+ | PHP Version 7 |
+----------------------------------------------------------------------+
| Copyright (c) 1997-2015 The PHP Group |
+----------------------------------------------------------------------+
@@ -135,10 +135,10 @@ PHP_MSHUTDOWN_FUNCTION(syslog)
PHP_FUNCTION(openlog)
{
char *ident;
- long option, facility;
- int ident_len;
+ zend_long option, facility;
+ size_t ident_len;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sll", &ident,
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "sll", &ident,
&ident_len, &option, &facility) == FAILURE) {
return;
}
@@ -175,11 +175,11 @@ PHP_FUNCTION(closelog)
Generate a system log message */
PHP_FUNCTION(syslog)
{
- long priority;
+ zend_long priority;
char *message;
- int message_len;
+ size_t message_len;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ls", &priority,
+ if (zend_parse_parameters(ZEND_NUM_ARGS(), "ls", &priority,
&message, &message_len) == FAILURE) {
return;
}