Fixed bug #72647 (xmlrpc_encode() unexpected output after referencing array elements)

This commit is contained in:
Xinchen Hui 2016-07-22 23:13:42 +08:00
parent 9a2207c90a
commit 6929121423
3 changed files with 41 additions and 0 deletions

View file

@ -568,6 +568,7 @@ static XMLRPC_VALUE PHP_to_XMLRPC_worker (const char* key, zval* in_val, int dep
xReturn = XMLRPC_CreateVector(key, vtype);
ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL(val_arr), num_index, my_key, pIter) {
ZVAL_DEREF(pIter);
ht = HASH_OF(pIter);
if (ht) {
ht->u.v.nApplyCount++;