com php-src: Fixed bug #65561 (Zend Opcache on Solaris 11 x86 needs ZEND_MM_ALIGNMENT=4). (Terry Ellison):
ext/opcache/Optimizer/zend_optimizer_internal.h
| From: | Anatol Belski | Date: | Wed, 16 Oct 2013 08:19:16 +0000 |
| Subject: | com php-src: Fixed bug #65561 (Zend Opcache on Solaris 11 x86 needs ZEND_MM_ALIGNMENT=4). (Terry Ellison): ext/opcache/Optimizer/zend_optimizer_internal.h |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73555@lists.php.net to get a copy of this message | ||
Commit: 5352788b442d39181fdfb2a10f80bca2f06f2933
Author: Dmitry Stogov <dmitry@zend.com> Thu, 29 Aug 2013 10:29:48 +0400
Committer: Anatol Belski <ab@php.net> Wed, 16 Oct 2013 01:19:16 -0700
Parents: db11ad2e94c4ca53325ec8c642d727252f5cb8dc
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5352788b442d39181fdfb2a10f80bca2f06f2933
Log:
Fixed bug #65561 (Zend Opcache on Solaris 11 x86 needs ZEND_MM_ALIGNMENT=4). (Terry Ellison)
Bugs:
https://bugs.php.net/65561
Changed paths:
M ext/opcache/Optimizer/zend_optimizer_internal.h
Diff:
diff --git a/ext/opcache/Optimizer/zend_optimizer_internal.h
b/ext/opcache/Optimizer/zend_optimizer_internal.h
index a9bad01..0b1afba 100644
--- a/ext/opcache/Optimizer/zend_optimizer_internal.h
+++ b/ext/opcache/Optimizer/zend_optimizer_internal.h
@@ -28,8 +28,8 @@
# define VAR_NUM(v) ((zend_uint)(EX_TMP_VAR_NUM(0, 0) - EX_TMP_VAR(0, v)))
# define NUM_VAR(v) ((zend_uint)(zend_uintptr_t)EX_TMP_VAR_NUM(0, v))
#else
-# define VAR_NUM(v) ((v)/(sizeof(temp_variable)))
-# define NUM_VAR(v) ((v)*(sizeof(temp_variable)))
+# define VAR_NUM(v) ((v)/ZEND_MM_ALIGNED_SIZE(sizeof(temp_variable)))
+# define NUM_VAR(v) ((v)*ZEND_MM_ALIGNED_SIZE(sizeof(temp_variable)))
#endif
#define INV_COND(op) ((op) == ZEND_JMPZ ? ZEND_JMPNZ : ZEND_JMPZ)