com php-src: fix wddx merge: ext/wddx/wddx.c

From: Date: Wed, 02 Mar 2016 08:02:33 +0000
Subject: com php-src: fix wddx merge: ext/wddx/wddx.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91243@lists.php.net to get a copy of this message
Commit: 1ce0ea7396a917f3e68037df3647c4118f3a9fec Author: Stanislav Malyshev <stas@php.net> Wed, 2 Mar 2016 00:02:33 -0800 Parents: 6823ee923de6e9cbd6ced8e3f87fc83a2c3bc444 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1ce0ea7396a917f3e68037df3647c4118f3a9fec Log: fix wddx merge Changed paths: M ext/wddx/wddx.c Diff: diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index 539ed57..330cb49 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -877,7 +877,7 @@ static void php_wddx_pop_element(void *user_data, const XML_Char *name) !strcmp((char *)name, EL_DATETIME)) { wddx_stack_top(stack, (void**)&ent1); - if (!ent1->data) { + if (Z_TYPE(ent1->data) == IS_UNDEF) { if (stack->top > 1) { stack->top--; } else { @@ -1020,7 +1020,7 @@ static void php_wddx_process_data(void *user_data, const XML_Char *s, int len) if (ent->varname) { efree(ent->varname); } - ent->data = NULL; + ZVAL_UNDEF(&ent->data); } break;

« previous php.cvs (#91243) next »