mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Fix GH-18743: Incompatibility in Inline TLS Assembly on Alpine 3.22
This commit is contained in:
4
NEWS
4
NEWS
@@ -32,6 +32,10 @@ PHP NEWS
|
||||
. Fix memory leak in intl_datetime_decompose() on failure. (nielsdos)
|
||||
. Fix memory leak in locale lookup on failure. (nielsdos)
|
||||
|
||||
- Opcache:
|
||||
. Fixed bug GH-18743 (Incompatibility in Inline TLS Assembly on Alpine 3.22).
|
||||
(nielsdos, Arnaud)
|
||||
|
||||
- ODBC:
|
||||
. Fix memory leak on php_odbc_fetch_hash() failure. (nielsdos)
|
||||
|
||||
|
||||
@@ -3458,7 +3458,7 @@ static void zend_jit_setup(bool reattached)
|
||||
|
||||
__asm__(
|
||||
"leaq _tsrm_ls_cache@tlsgd(%%rip), %0\n"
|
||||
: "=a" (ti));
|
||||
: "=D" (ti));
|
||||
tsrm_tls_offset = ti[1];
|
||||
tsrm_tls_index = ti[0] * 8;
|
||||
#elif defined(__FreeBSD__)
|
||||
@@ -3466,7 +3466,7 @@ static void zend_jit_setup(bool reattached)
|
||||
|
||||
__asm__(
|
||||
"leaq _tsrm_ls_cache@tlsgd(%%rip), %0\n"
|
||||
: "=a" (ti));
|
||||
: "=D" (ti));
|
||||
tsrm_tls_offset = ti[1];
|
||||
/* Index is offset by 1 on FreeBSD (https://github.com/freebsd/freebsd-src/blob/bf56e8b9c8639ac4447d223b83cdc128107cc3cd/libexec/rtld-elf/rtld.c#L5260) */
|
||||
tsrm_tls_index = (ti[0] + 1) * 8;
|
||||
@@ -3475,7 +3475,7 @@ static void zend_jit_setup(bool reattached)
|
||||
|
||||
__asm__(
|
||||
"leaq _tsrm_ls_cache@tlsgd(%%rip), %0\n"
|
||||
: "=a" (ti));
|
||||
: "=D" (ti));
|
||||
tsrm_tls_offset = ti[1];
|
||||
tsrm_tls_index = ti[0] * 16;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user