Skip to content

Fix linker failure when building opcache statically #18939

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Remove unnecessary cast
  • Loading branch information
arnaud-lb committed Jun 30, 2025
commit ee2d7f3f70b78f9201ac02a7248bcc1ebfac76dd
2 changes: 1 addition & 1 deletion ext/opcache/jit/tls/zend_jit_tls_x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ zend_result zend_jit_resolve_tsrm_ls_cache_offsets(
dtv_pointer_t *dtv = *(dtv_pointer_t**)((uintptr_t)thread_pointer + DTV_OFFSET);
void *addr = (void*)(((dtv_pointer_t*)((char*)dtv + *module_index))->val + *module_offset);

ZEND_ASSERT((void*)addr == &_tsrm_ls_cache);
ZEND_ASSERT(addr == &_tsrm_ls_cache);
# endif

zend_accel_error(ACCEL_LOG_DEBUG, "dynamic tls module idx %zu offset %zu (inferred from code)\n",
Expand Down
2 changes: 1 addition & 1 deletion ext/opcache/jit/tls/zend_jit_tls_x86_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ zend_result zend_jit_resolve_tsrm_ls_cache_offsets(
dtv_pointer_t *dtv = *(dtv_pointer_t**)((uintptr_t)thread_pointer + DTV_OFFSET);
addr = (void*)(((dtv_pointer_t*)((char*)dtv + *module_index))->val + *module_offset);

ZEND_ASSERT((void*)addr == &_tsrm_ls_cache);
ZEND_ASSERT(addr == &_tsrm_ls_cache);
# endif

zend_accel_error(ACCEL_LOG_DEBUG, "dynamic tls module idx %zu offset %zu (inferred from code)\n",
Expand Down