com php-src: Fixed Bug #72564 boolean always deserialized as "true": ext/wddx/wddx.c
| From: | Remi Collet | Date: | Fri, 08 Jul 2016 08:46:33 +0000 |
| Subject: | com php-src: Fixed Bug #72564 boolean always deserialized as "true": ext/wddx/wddx.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92869@lists.php.net to get a copy of this message | ||
Commit: 99d6e09c3d6679bb522836c833d0cfd4f79c6014
Author: Remi Collet <remi@php.net> Fri, 8 Jul 2016 10:46:33 +0200
Parents: 76a143c27c29dcf945d0f8e6b0497f4dd03f3b1a
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=99d6e09c3d6679bb522836c833d0cfd4f79c6014
Log:
Fixed Bug #72564 boolean always deserialized as "true"
Bugs:
https://bugs.php.net/72564
Changed paths:
M ext/wddx/wddx.c
Diff:
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c
index 2cc3c8b..cb0c01e 100644
--- a/ext/wddx/wddx.c
+++ b/ext/wddx/wddx.c
@@ -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) {