php-src/ext/opcache
Niels Dossche 28b448ac20
Fix GH-17307: Internal closure causes JIT failure
`bcadd(...)` is a closure for an internal function, and
`zend_jit_push_call_frame` takes into account both last_var and the
difference in argument numbers not only for user code but also for
internal code. However, this is inconsistent with
`zend_vm_calc_used_stack`, causing argument corruption.
Making this consistent fixes the issue.

I could only reproduce the assertion failure when using Valgrind.

Closes GH-17319.
2025-01-09 19:59:38 +01:00
..
jit Fix GH-17307: Internal closure causes JIT failure 2025-01-09 19:59:38 +01:00
tests Fix GH-17307: Internal closure causes JIT failure 2025-01-09 19:59:38 +01:00
config.m4 Autotools: Mark always-shared extensions with ext_shared variable (#15739) 2024-09-04 23:28:29 +02:00
config.w32 Fix GH-16839: Error on building Opcache JIT for Windows ARM64 2024-11-18 23:27:54 +01:00
CREDITS
opcache.stub.php Add API to exempt function from being traced in JIT (#15559) 2024-09-24 14:20:38 +02:00
opcache_arginfo.h Add API to exempt function from being traced in JIT (#15559) 2024-09-24 14:20:38 +02:00
shared_alloc_mmap.c Merge branch 'PHP-8.3' 2024-07-23 13:43:25 +02:00
shared_alloc_posix.c opcache: change uses of sprintf into snprintf 2024-06-14 08:12:03 -07:00
shared_alloc_shm.c Make lots of string pointers const (#10646) 2023-02-21 14:01:37 +00:00
shared_alloc_win32.c Use a single version of mempcpy(3) (#12257) 2023-12-20 15:16:32 +00:00
zend_accelerator_blacklist.c Fix gcc-14 Wcalloc-transposed-args warnings 2024-04-01 20:34:14 +02:00
zend_accelerator_blacklist.h
zend_accelerator_debug.c
zend_accelerator_debug.h
zend_accelerator_hash.c Mark globals as const (#10303) 2023-01-23 13:46:58 +00:00
zend_accelerator_hash.h Revert GH-10279 2023-01-16 12:25:59 +01:00
zend_accelerator_module.c Merge branch 'PHP-8.3' into PHP-8.4 2024-12-09 11:46:51 +01:00
zend_accelerator_module.h
zend_accelerator_util_funcs.c Merge branch 'PHP-8.3' into PHP-8.4 2024-10-22 15:06:06 +02:00
zend_accelerator_util_funcs.h
zend_file_cache.c Remove unused ext/standard/basic_functions.h header inclusions 2024-08-18 18:20:22 +01:00
zend_file_cache.h
zend_persist.c Merge branch 'PHP-8.3' 2024-08-30 01:01:33 +03:00
zend_persist.h
zend_persist_calc.c [RFC] Property hooks (#13455) 2024-07-14 11:55:03 +02:00
zend_shared_alloc.c Merge branch 'PHP-8.3' 2024-08-29 23:12:56 +03:00
zend_shared_alloc.h Export opcache shared globals (#15543) 2024-08-26 14:54:36 +02:00
ZendAccelerator.c Merge branch 'PHP-8.3' into PHP-8.4 2024-12-24 14:23:33 +01:00
ZendAccelerator.h Add OPcache restart hook (#15590) 2024-09-24 16:24:01 +02:00