summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 9ddb234186..20ad3d9986 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -1823,7 +1823,7 @@ static void php_array_data_shuffle(zval *array TSRMLS_DC) /* {{{ */
for (j = 0; j < n_elems; j++) {
p = hash->arData + j;
if (p->key && !IS_INTERNED(p->key)) {
- pefree((char*)p->key, hash->flags & HASH_FLAG_PERSISTENT);
+ STR_RELEASE(p->key);
}
p->h = j;
p->key = NULL;