Fixed wrong hash value in ext/standard/tests/array/array_combine.php

This commit is contained in:
Xinchen Hui 2014-03-05 18:39:20 +08:00
parent 70b7887712
commit ef01b7937e

View File

@ -1868,6 +1868,8 @@ static void increment_string(zval *str) /* {{{ */
} else if (Z_REFCOUNT_P(str) > 1) {
Z_DELREF_P(str);
Z_STR_P(str) = STR_DUP(Z_STR_P(str), 0);
} else {
STR_FORGET_HASH_VAL(Z_STR_P(str));
}
s = Z_STRVAL_P(str);