X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_misc.c;h=416e95d4f7727231c7ff28709c83d18dc24d4ad5;hp=377aa9af4a925790770924ea9749607ca3732f14;hb=4062420a5e5d301db4a3d820be881e7675a242e1;hpb=e76f27074a23b1cf83fdd81f97a5c767399225a6 diff --git a/php_http_misc.c b/php_http_misc.c index 377aa9a..416e95d 100644 --- a/php_http_misc.c +++ b/php_http_misc.c @@ -142,7 +142,7 @@ int php_http_array_apply_append_func(void *pDest TSRMLS_DC, int num_args, va_lis } add_next_index_zval(*data, *value); } else if (key) { - zend_hash_add(dst, key, hash_key->nKeyLength, value, sizeof(zval *), NULL); + zend_symtable_update(dst, key, hash_key->nKeyLength, value, sizeof(zval *), NULL); } else { zend_hash_quick_add(dst, hash_key->arKey, hash_key->nKeyLength, hash_key->h, value, sizeof(zval *), NULL); }