Fix ZTS OPcache build on Cygwin

`configure --enable-opcache --disable-opcache-jit --enable-zts` won't
compile on Cygwin.  We fix this, but that does not imply that OPcache
properly works in this environment, let alone that JIT would be
functional.

Closes GH-16920.
This commit is contained in:
Christoph M. Becker 2024-11-24 16:09:05 +01:00
parent b0b876d076
commit 32ff46b633
No known key found for this signature in database
GPG key ID: D66C9593118BCCB6
2 changed files with 5 additions and 2 deletions

3
NEWS
View file

@ -20,6 +20,9 @@ PHP NEWS
- Intl:
. Bumped ICU requirement to ICU >= 57.1. (cmb)
- OPcache:
. Fixed ZTS OPcache build on Cygwin. (cmb)
- Output:
. Fixed calculation of aligned buffer size. (cmb)

View file

@ -778,7 +778,7 @@ TSRM_API size_t tsrm_get_ls_cache_tcb_offset(void)
return 0;
#elif defined(__x86_64__) && defined(__GNUC__) && !defined(__FreeBSD__) && \
!defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__MUSL__) && \
!defined(__HAIKU__)
!defined(__HAIKU__) && !defined(__CYGWIN__)
size_t ret;
asm ("movq _tsrm_ls_cache@gottpoff(%%rip),%0"
@ -786,7 +786,7 @@ TSRM_API size_t tsrm_get_ls_cache_tcb_offset(void)
return ret;
#elif defined(__i386__) && defined(__GNUC__) && !defined(__FreeBSD__) && \
!defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__MUSL__) && \
!defined(__HAIKU__)
!defined(__HAIKU__) && !defined(__CYGWIN__)
size_t ret;
asm ("leal _tsrm_ls_cache@ntpoff,%0"