com php-src: Hash value must not zero?: Zend/zend_strin g.h
| From: | Xinchen Hui | Date: | Sat, 13 Dec 2014 03:42:53 +0000 |
| Subject: | com php-src: Hash value must not zero?: Zend/zend_strin g.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-83772@lists.php.net to get a copy of this message | ||
Commit: 3753e6d978bf94f5cad39c0f9d03f237866cac05
Author: Xinchen Hui <laruence@php.net> Sat, 13 Dec 2014 11:42:53 +0800
Parents: 3893c1fc3d221f3954115de638db4be0e03e886c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3753e6d978bf94f5cad39c0f9d03f237866cac05
Log:
Hash value must not zero?
Changed paths:
M Zend/zend_string.h
Diff:
diff --git a/Zend/zend_string.h b/Zend/zend_string.h
index 1da3b51..9a4eb83 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;
}