]> granicus.if.org Git - php/commitdiff
Fixed Bug #72564 boolean always deserialized as "true"
authorRemi Collet <remi@php.net>
Fri, 8 Jul 2016 08:46:33 +0000 (10:46 +0200)
committerRemi Collet <remi@php.net>
Fri, 8 Jul 2016 08:46:33 +0000 (10:46 +0200)
ext/wddx/wddx.c

index 2cc3c8b9cf6619b467add7ca24250b0998de1547..cb0c01e52408a01f60f21a93fb774ad57e0a235e 100644 (file)
@@ -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) {