We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63f76a6 commit ebda1e8Copy full SHA for ebda1e8
ext/standard/string.c
@@ -2410,14 +2410,14 @@ PHP_FUNCTION(substr_replace)
2410
zend_string *orig_str = zval_get_tmp_string(tmp_str, &tmp_orig_str);
2411
2412
if (from_ht) {
2413
+ if (HT_IS_PACKED(from_ht)) {
2414
while (from_idx < from_ht->nNumUsed) {
2415
tmp_from = &from_ht->arPacked[from_idx];
2416
if (Z_TYPE_P(tmp_from) != IS_UNDEF) {
2417
break;
2418
}
2419
from_idx++;
2420
- if (HT_IS_PACKED(from_ht)) {
2421
} else {
2422
2423
tmp_from = &from_ht->arData[from_idx].val;
0 commit comments