Skip to content

Commit 3753e6d

Browse files
committed
Hash value must not zero?
1 parent 3893c1f commit 3753e6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_string.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ static zend_always_inline zend_ulong zend_inline_hash_func(const char *str, size
279279
case 0: break;
280280
EMPTY_SWITCH_DEFAULT_CASE()
281281
}
282+
283+
ZEND_ASSERT(hash != 0);
282284
return hash;
283285
}
284286

0 commit comments

Comments
 (0)