diff --git a/frankenphp.c b/frankenphp.c index d048e576b..69969501b 100644 --- a/frankenphp.c +++ b/frankenphp.c @@ -19,7 +19,6 @@ #include #include #include -#include #if defined(__linux__) #include #elif defined(__FreeBSD__) || defined(__OpenBSD__) @@ -205,7 +204,7 @@ bool frankenphp_shutdown_dummy_request(void) { return true; } -PHPAPI void get_full_env(zval *track_vars_array) { +void get_full_env(zval *track_vars_array) { go_getfullenv(thread_index, track_vars_array); } @@ -1266,7 +1265,7 @@ static zend_module_entry *modules = NULL; static int modules_len = 0; static int (*original_php_register_internal_extensions_func)(void) = NULL; -PHPAPI int register_internal_extensions(void) { +int register_internal_extensions(void) { if (original_php_register_internal_extensions_func != NULL && original_php_register_internal_extensions_func() != SUCCESS) { return FAILURE; diff --git a/internal/phpheaders/phpheaders.go b/internal/phpheaders/phpheaders.go index 71f23e7d9..19f1908d2 100644 --- a/internal/phpheaders/phpheaders.go +++ b/internal/phpheaders/phpheaders.go @@ -1,6 +1,5 @@ package phpheaders -import "C" import ( "context" "strings" diff --git a/internal/state/state.go b/internal/state/state.go index b15c008bc..35fa9633d 100644 --- a/internal/state/state.go +++ b/internal/state/state.go @@ -1,6 +1,5 @@ package state -import "C" import ( "slices" "sync" diff --git a/scaling.go b/scaling.go index 37e081abb..51acd1cd3 100644 --- a/scaling.go +++ b/scaling.go @@ -1,8 +1,5 @@ package frankenphp -//#include "frankenphp.h" -//#include -import "C" import ( "errors" "log/slog" diff --git a/worker.go b/worker.go index e2c545363..c4e45b56e 100644 --- a/worker.go +++ b/worker.go @@ -1,7 +1,5 @@ package frankenphp -// #include "frankenphp.h" -import "C" import ( "fmt" "os"