Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frankenphp.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ typedef struct {
} frankenphp_server_ctx;
static THREAD_LOCAL frankenphp_server_ctx frankenphp_local_server_ctx;

static inline uintptr_t frankenphp_thread_index(void) {
uintptr_t frankenphp_thread_index(void) {
frankenphp_server_ctx *ctx = (frankenphp_server_ctx *)SG(server_context);
/* Fall back to the OS thread's own TLS before
* frankenphp_update_request_context(). */
Expand Down
3 changes: 3 additions & 0 deletions frankenphp.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,7 @@ typedef enum {

void register_extensions(zend_module_entry **m, int len);

// This function is exported for use by extensions, as proposed in PR #2305
uintptr_t frankenphp_thread_index(void);
Comment thread
nickchomey marked this conversation as resolved.

#endif
Loading