mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: Haiku fix ZTS build disabling `tsrm_ls_cache` usage.
This commit is contained in:
commit
4c0639df1c
2 changed files with 5 additions and 2 deletions
1
NEWS
1
NEWS
|
@ -7,6 +7,7 @@ PHP NEWS
|
|||
. Fixed potential race condition during resource ID allocation. (ryancaicse)
|
||||
. Fixed bug GH-8133 (Preloading of constants containing arrays with enums
|
||||
segfaults). (ilutov)
|
||||
. Fixed Haiku ZTS builds. (David Carlier)
|
||||
|
||||
- Date:
|
||||
. Fixed bug GH-7752 (DateTimeZone::getTransitions() returns insufficient
|
||||
|
|
|
@ -736,13 +736,15 @@ TSRM_API size_t tsrm_get_ls_cache_tcb_offset(void)
|
|||
#if defined(__APPLE__) && defined(__x86_64__)
|
||||
// TODO: Implement support for fast JIT ZTS code ???
|
||||
return 0;
|
||||
#elif defined(__x86_64__) && defined(__GNUC__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__MUSL__)
|
||||
#elif defined(__x86_64__) && defined(__GNUC__) && !defined(__FreeBSD__) && \
|
||||
!defined(__OpenBSD__) && !defined(__MUSL__) && !defined(__HAIKU__)
|
||||
size_t ret;
|
||||
|
||||
asm ("movq _tsrm_ls_cache@gottpoff(%%rip),%0"
|
||||
: "=r" (ret));
|
||||
return ret;
|
||||
#elif defined(__i386__) && defined(__GNUC__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__MUSL__)
|
||||
#elif defined(__i386__) && defined(__GNUC__) && !defined(__FreeBSD__) && \
|
||||
!defined(__OpenBSD__) && !defined(__MUSL__) && !defined(__HAIKU__)
|
||||
size_t ret;
|
||||
|
||||
asm ("leal _tsrm_ls_cache@ntpoff,%0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue