]> granicus.if.org Git - php/commit
zend_hash_do_resize: fix compacting condition
authorK. <kaja47@seznam.cz>
Tue, 23 Dec 2014 14:32:15 +0000 (15:32 +0100)
committerK. <kaja47@seznam.cz>
Tue, 23 Dec 2014 14:32:15 +0000 (15:32 +0100)
commitc462ff7ac2514e22cef80aeb6fb733ebb22af8dc
tree3b294c73552f30c9f2bf5267f29ed94a1197170f
parent60d491c97003154f3c2a66ff7997bef55c37ac80
zend_hash_do_resize: fix compacting condition

nNumUsed should always be greater or equal to nNumOfElements so original condition is never true and arrays are always doubled in size and compaction is never triggered
Zend/zend_hash.c