Skip to content

Commit b6864d9

Browse files
committed
Merge branch 'PHP-5.5'
* PHP-5.5: Fixed bug #65561 (Zend Opcache on Solaris 11 x86 needs ZEND_MM_ALIGNMENT=4). (Terry Ellison) Conflicts: NEWS
2 parents 82bb2a2 + 790db9f commit b6864d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/Optimizer/zend_optimizer_internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
# define VAR_NUM(v) ((zend_uint)(EX_TMP_VAR_NUM(0, 0) - EX_TMP_VAR(0, v)))
2929
# define NUM_VAR(v) ((zend_uint)(zend_uintptr_t)EX_TMP_VAR_NUM(0, v))
3030
#else
31-
# define VAR_NUM(v) ((v)/(sizeof(temp_variable)))
32-
# define NUM_VAR(v) ((v)*(sizeof(temp_variable)))
31+
# define VAR_NUM(v) ((v)/ZEND_MM_ALIGNED_SIZE(sizeof(temp_variable)))
32+
# define NUM_VAR(v) ((v)*ZEND_MM_ALIGNED_SIZE(sizeof(temp_variable)))
3333
#endif
3434

3535
#define INV_COND(op) ((op) == ZEND_JMPZ ? ZEND_JMPNZ : ZEND_JMPZ)

0 commit comments

Comments
 (0)