]> granicus.if.org Git - php/commitdiff
Fixed bug #70067 (Cross-compile failure in opcache when SIZEOF_ZEND_LONG < SIZEOF_SIZE_T)
authorXinchen Hui <laruence@php.net>
Tue, 14 Jul 2015 10:58:43 +0000 (18:58 +0800)
committerXinchen Hui <laruence@php.net>
Tue, 14 Jul 2015 10:59:36 +0000 (18:59 +0800)
ext/opcache/zend_accelerator_util_funcs.c

index 715ef07b5f1c7d5de502e0f4d47a5eb5bcaa9980..e20f3d16f6141a7cc4ba50a4423b202dc2d14c1b 100644 (file)
@@ -30,7 +30,7 @@
 # define accel_xlat_set(old, new)      zend_hash_index_add_new_ptr(&ZCG(bind_hash), (zend_ulong)(zend_uintptr_t)(old), (new))
 # define accel_xlat_get(old)           zend_hash_index_find_ptr(&ZCG(bind_hash), (zend_ulong)(zend_uintptr_t)(old))
 #else
-# define accel_xlat_set(old, new)      (zend_hash_str_add_new_ptr(&ZCG(bind_hash), (char*)&(old), sizeof(void*), (zend_ulong)(zend_uintptr_t)(old), (void**)&(new))
+# define accel_xlat_set(old, new)      zend_hash_str_add_new_ptr(&ZCG(bind_hash), (char*)&(old), sizeof(void*), (old))
 # define accel_xlat_get(old)       zend_hash_str_find_ptr(&ZCG(bind_hash), (char*)&(old), sizeof(void*))
 #endif