mirror of https://github.com/deuill/go-php.git
Merge pull request #58 from thekid/fix/incompatible-pointer-types
Fix "warning: initialization from incompatible pointer type"
This commit is contained in:
commit
9d111e7342
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);
|
php_import_environment_variables(track_vars_array);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if PHP_VERSION_ID < 70100
|
||||||
static void engine_log_message(char *str) {
|
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);
|
engine_context *context = SG(server_context);
|
||||||
|
|
||||||
engineWriteLog(context, (void *) str, strlen(str));
|
engineWriteLog(context, (void *) str, strlen(str));
|
||||||
|
|
Loading…
Reference in New Issue