Skip to content

Commit bfc4221

Browse files
committed
add test for bug #72564 (7.x regression)
1 parent 8b905e3 commit bfc4221

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

ext/wddx/tests/bug72564.phpt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--TEST--
2+
Bug #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+
?>
12+
Done
13+
--EXPECT--
14+
string(84) "<wddxPacket version='1.0'><header/><data><boolean value='true'/></data></wddxPacket>"
15+
bool(true)
16+
string(85) "<wddxPacket version='1.0'><header/><data><boolean value='false'/></data></wddxPacket>"
17+
bool(false)
18+
string(68) "<wddxPacket version='1.0'><header/><data><null/></data></wddxPacket>"
19+
NULL
20+
Done

0 commit comments

Comments
 (0)