mirror of
https://github.com/php/php-src.git
synced 2025-01-23 04:04:16 +08:00
Fixed Bug #72564 boolean always deserialized as "true"
This commit is contained in:
parent
76a143c27c
commit
99d6e09c3d
@ -1013,9 +1013,9 @@ static void php_wddx_process_data(void *user_data, const XML_Char *s, int len)
|
||||
|
||||
case ST_BOOLEAN:
|
||||
if (!strcmp((char *)s, "true")) {
|
||||
Z_LVAL(ent->data) = 1;
|
||||
ZVAL_TRUE(&ent->data);
|
||||
} else if (!strcmp((char *)s, "false")) {
|
||||
Z_LVAL(ent->data) = 0;
|
||||
ZVAL_FALSE(&ent->data);
|
||||
} else {
|
||||
zval_ptr_dtor(&ent->data);
|
||||
if (ent->varname) {
|
||||
|
Loading…
Reference in New Issue
Block a user