From c03328857394bef36ffa9678d33079ad96e4a4e4 Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Tue, 25 Sep 2001 21:58:48 +0000 Subject: Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know. --- ext/standard/syslog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/standard/syslog.c') diff --git a/ext/standard/syslog.c b/ext/standard/syslog.c index 74d99abace..d3e05fa5e9 100644 --- a/ext/standard/syslog.c +++ b/ext/standard/syslog.c @@ -217,8 +217,8 @@ PHP_FUNCTION(openlog) if (BG(syslog_device)) { efree(BG(syslog_device)); } - BG(syslog_device) = estrndup((*ident)->value.str.val, (*ident)->value.str.len); - openlog(BG(syslog_device), (*option)->value.lval, (*facility)->value.lval); + BG(syslog_device) = estrndup(Z_STRVAL_PP(ident), Z_STRLEN_PP(ident)); + openlog(BG(syslog_device), Z_LVAL_PP(option), Z_LVAL_PP(facility)); RETURN_TRUE; } /* }}} */ @@ -253,7 +253,7 @@ PHP_FUNCTION(syslog) * this will cause problems. */ - php_syslog((*priority)->value.lval, "%.500s", (*message)->value.str.val); + php_syslog(Z_LVAL_PP(priority), "%.500s", Z_STRVAL_PP(message)); RETURN_TRUE; } /* }}} */ -- cgit v1.2.1