}
#if SIZEOF_SIZE_T == 4
-# define ZVAL_COPY_VALUE_EX(z, v, gc, t) \
+# ifdef WORDS_BIGENDIAN
+# define ZVAL_COPY_VALUE_EX(z, v, gc, t) \
+ do { \
+ uint32_t _w1 = v->value.ww.w1; \
+ Z_COUNTED_P(z) = gc; \
+ z->value.ww.w1 = _w1; \
+ Z_TYPE_INFO_P(z) = t; \
+ } while (0)
+# else
+# define ZVAL_COPY_VALUE_EX(z, v, gc, t) \
do { \
uint32_t _w2 = v->value.ww.w2; \
Z_COUNTED_P(z) = gc; \
z->value.ww.w2 = _w2; \
Z_TYPE_INFO_P(z) = t; \
} while (0)
+# endif
#elif SIZEOF_SIZE_T == 8
# define ZVAL_COPY_VALUE_EX(z, v, gc, t) \
do { \