Skip to content

fix: build with non-ZTS PHP - #2819

Merged
dunglas merged 1 commit into
mainfrom
fix/nts-build
Nov 6, 2026
Merged

dunglas merged 1 commit into
mainfrom
fix/nts-build

Conversation

@dunglas

@dunglas dunglas commented Nov 6, 2026

Copy link
Copy Markdown
Member

Fixes #2818.

frankenphp_init_date_globals() uses ts_resource() and globals_id_ptr, which only exist in ZTS builds. Its only call site was already guarded by #ifdef ZTS, but the definition was not. NTS builds don't need it: date_globals is a static global there, so last_errors is already zeroed.

@dunglas
dunglas merged commit 0575d28 into main Nov 6, 2026
45 checks passed
@dunglas
dunglas deleted the fix/nts-build branch November 6, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to build Frankenphp 1.13.5 on PHP without zts

1 participant