mirror of https://github.com/deuill/go-php.git
Use old signature for engine_log_message w/ PHP < 7.1
See https://github.com/deuill/go-php/pull/58#issuecomment-426009629
This commit is contained in:
parent
129846f6ee
commit
f7137ab328
4
engine.c
4
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));
|
||||
|
|
Loading…
Reference in New Issue