mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix for #2161
This commit is contained in:
parent
02822cbc33
commit
1a218328da
1 changed files with 6 additions and 4 deletions
|
@ -618,10 +618,12 @@ static void _php_wddx_deserialize(zval *packet, zval *return_value)
|
|||
|
||||
XML_ParserFree(parser);
|
||||
|
||||
wddx_stack_top(&stack, (void**)&ent);
|
||||
*return_value = *(ent->data);
|
||||
zval_copy_ctor(return_value);
|
||||
|
||||
if (!wddx_stack_is_empty(&stack)) {
|
||||
wddx_stack_top(&stack, (void**)&ent);
|
||||
*return_value = *(ent->data);
|
||||
zval_copy_ctor(return_value);
|
||||
}
|
||||
|
||||
wddx_stack_destroy(&stack);
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue