xref: /PHP-5.6/ext/wddx/tests/bug72564.phpt (revision bfc42211)
1--TEST--
2Bug #72564: wddx deserialization of boolean
3--SKIPIF--
4<?php if (!extension_loaded("wddx")) print "skip"; ?>
5--FILE--
6<?php
7	foreach([true, false, NULL] as $v) {
8		$x =  wddx_serialize_value($v);
9		var_dump($x, wddx_deserialize($x));
10	}
11?>
12Done
13--EXPECT--
14string(84) "<wddxPacket version='1.0'><header/><data><boolean value='true'/></data></wddxPacket>"
15bool(true)
16string(85) "<wddxPacket version='1.0'><header/><data><boolean value='false'/></data></wddxPacket>"
17bool(false)
18string(68) "<wddxPacket version='1.0'><header/><data><null/></data></wddxPacket>"
19NULL
20Done
21