summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_string.h2
1 files changed, 2 insertions, 0 deletions
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;
}