From 3753e6d978bf94f5cad39c0f9d03f237866cac05 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sat, 13 Dec 2014 11:42:53 +0800 Subject: Hash value must not zero? --- Zend/zend_string.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Zend/zend_string.h') diff --git a/Zend/zend_string.h b/Zend/zend_string.h index 1da3b511c0..9a4eb8329c 100644 --- a/Zend/zend_string.h +++ b/Zend/zend_string.h @@ -279,6 +279,8 @@ static zend_always_inline zend_ulong zend_inline_hash_func(const char *str, size case 0: break; EMPTY_SWITCH_DEFAULT_CASE() } + + ZEND_ASSERT(hash != 0); return hash; } -- cgit v1.2.1