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
Update ext/opcache/jit/tls/zend_jit_tls_x86_64.c
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
  • Loading branch information
arnaud-lb and TimWolla committed Jun 30, 2025
commit e98ba520c9d5c9d14ab9b91bc88208bbb20b67cf
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 @@ -149,7 +149,7 @@ zend_result zend_jit_resolve_tsrm_ls_cache_offsets(
ZEND_ASSERT((void*)addr == &_tsrm_ls_cache);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Void cast is not necessary.

# endif

zend_accel_error(ACCEL_LOG_DEBUG, "dynamic tls module idx %zu offset %zu (infered from code)\n",
zend_accel_error(ACCEL_LOG_DEBUG, "dynamic tls module idx %zu offset %zu (inferred from code)\n",
(size_t)tlsdesc->index, (size_t)tlsdesc->offset);

return SUCCESS;
Expand Down