summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2000-06-28 20:07:26 +0000
committerAndrei Zmievski <andrei@php.net>2000-06-28 20:07:26 +0000
commit29e8e565c6b518a99e550e45b5adfd4d01dafb7d (patch)
treec6d1dc384d203d05fad88adcac549bf86f85e10e /ext/standard/array.c
parent3860254631a8418679693f08cc7fb6a9e5b6f070 (diff)
downloadphp-git-29e8e565c6b518a99e550e45b5adfd4d01dafb7d.tar.gz
@- Added an optional parameter to preg_replace() that can be used to
@ specify how many replacements to make. (Andrei)
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 6910fbb701..2eced456c2 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -1373,7 +1373,7 @@ HashTable* php_splice(HashTable *in_hash, int offset, int length,
if (p->nKeyLength)
zend_hash_update(out_hash, p->arKey, p->nKeyLength, &entry, sizeof(zval *), NULL);
else
- zend_hash_next_index_insert(out_hash, &entry, sizeof(zval *), NULL);
+ zend_hash_index_update(out_hash, p->h, &entry, sizeof(zval *), NULL);
}
/* If hash for removed entries exists, go until offset+length
@@ -1385,7 +1385,7 @@ HashTable* php_splice(HashTable *in_hash, int offset, int length,
if (p->nKeyLength)
zend_hash_update(*removed, p->arKey, p->nKeyLength, &entry, sizeof(zval *), NULL);
else
- zend_hash_next_index_insert(*removed, &entry, sizeof(zval *), NULL);
+ zend_hash_index_update(*removed, p->h, &entry, sizeof(zval *), NULL);
}
} else /* otherwise just skip those entries */
for( ; pos<offset+length && p; pos++, p=p->pListNext);