Skip to content

Fix ZTS build on OpenBSD - #25557

Open
osbre wants to merge 1 commit into
php:PHP-8.4from
osbre:openbsd-tsrm-emutls
Open

osbre wants to merge 1 commit into
php:PHP-8.4from
osbre:openbsd-tsrm-emutls

Conversation

@osbre

@osbre osbre commented Nov 18, 2026

Copy link
Copy Markdown

On OpenBSD, TSRM should use the default TLS model, the same as it already does on FreeBSD and NetBSD.

OpenBSD uses emulated TLS, so there is no _tsrm_ls_cache symbol. On aarch64, tsrm_get_ls_cache_tcb_offset() still references it in inline asm, and the link fails:

ld: error: undefined symbol: _tsrm_ls_cache

This PR adds OpenBSD to that list to fix the build.

Tested with a --enable-zts build on OpenBSD -current/arm64.

@osbre
osbre changed the base branch from master to PHP-8.4 November 18, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant