summaryrefslogtreecommitdiff
path: root/Zend/zend_hash.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-12-03 13:28:41 +0300
committerDmitry Stogov <dmitry@zend.com>2015-12-03 13:28:41 +0300
commit59424bb7bd2a5206dddb8575d8f081610be7bf50 (patch)
tree2639279dd17e530cb234117144636c753d154d8c /Zend/zend_hash.c
parent2fabcbfedbd895bcb437298bb94655bcb9556468 (diff)
downloadphp-git-59424bb7bd2a5206dddb8575d8f081610be7bf50.tar.gz
Fixed bug #71006 (symbol referencing errors on Sparc/Solaris)
Diffstat (limited to 'Zend/zend_hash.c')
-rw-r--r--Zend/zend_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c
index 283ceb8c18..ecfee33e14 100644
--- a/Zend/zend_hash.c
+++ b/Zend/zend_hash.c
@@ -112,7 +112,7 @@ static uint32_t zend_always_inline zend_hash_check_size(uint32_t nSize)
rather than using an undefined bis scan result. */
return nSize;
}
-#elif defined(__GNUC__) || __has_builtin(__builtin_clz)
+#elif (defined(__GNUC__) || __has_builtin(__builtin_clz)) && defined(PHP_HAVE_BUILTIN_CLZ)
return 0x2 << (__builtin_clz(nSize - 1) ^ 0x1f);
#else
nSize -= 1;