Skip to content

Commit c8df28d

Browse files
committed
Fixed 32-bit JIT
1 parent c734351 commit c8df28d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ext/opcache/jit/zend_jit_disasm_x86.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ static int zend_jit_disasm_init(void)
491491
REGISTER_HELPER(zend_jit_pre_dec_obj_helper);
492492
REGISTER_HELPER(zend_jit_post_inc_obj_helper);
493493
REGISTER_HELPER(zend_jit_post_dec_obj_helper);
494-
#if (PHP_VERSION_ID <= 80000) && (SIZEOF_SIZE_T == 4)
494+
#if (PHP_VERSION_ID <= 80100) && (SIZEOF_SIZE_T == 4)
495495
REGISTER_HELPER(zval_jit_update_constant_ex);
496496
#endif
497497
REGISTER_HELPER(zend_jit_free_trampoline_helper);

ext/opcache/jit/zend_jit_helpers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2639,7 +2639,7 @@ static void ZEND_FASTCALL zend_jit_post_dec_obj_helper(zend_object *zobj, zend_s
26392639
}
26402640
}
26412641

2642-
#if (PHP_VERSION_ID <= 80000) && (SIZEOF_SIZE_T == 4)
2642+
#if (PHP_VERSION_ID <= 80100) && (SIZEOF_SIZE_T == 4)
26432643
static zend_result ZEND_FASTCALL zval_jit_update_constant_ex(zval *p, zend_class_entry *scope)
26442644
{
26452645
if (Z_TYPE_P(p) == IS_CONSTANT_AST) {

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12493,7 +12493,7 @@ static int zend_jit_recv_init(dasm_State **Dst, const zend_op *opline, const zen
1249312493
| .if X64
1249412494
| EXT_CALL zval_update_constant_ex, r0
1249512495
| .else
12496-
||#if (PHP_VERSION_ID <= 80000)
12496+
||#if (PHP_VERSION_ID < 80100) && (SIZEOF_SIZE_T == 4)
1249712497
| EXT_CALL zval_jit_update_constant_ex, r0
1249812498
||#else
1249912499
| EXT_CALL zval_update_constant_ex, r0

0 commit comments

Comments
 (0)