Closed thekid closed 5 years ago
For PHP < 7.1.0, this is necessary:
diff --git a/engine.c b/engine.c
index d3a7ead..4c87203 100644
--- a/engine.c
+++ b/engine.c
@@ -63,7 +63,11 @@ static void engine_register_variables(zval *track_vars_array) {
php_import_environment_variables(track_vars_array);
}
+#if PHP_VERSION_ID < 70100
+static void engine_log_message(char *str) {
+#else
static void engine_log_message(char *str, int syslog_type_int) {
+#endif
engine_context *context = SG(server_context);
engineWriteLog(context, (void *) str, strlen(str));
Thanks! I might drop PHP 5.x support at some point and have more granular tags, but until then we'll need to use constants like so.
It's time to drop support for PHP 5.x.
This pull request fixes the following error:
The extra parameter syslog_type_int was introduced in PHP 7.1, see this commit.