xref: /PHP-7.2/ext/wddx/tests/bug73331.phpt (revision f1d7e3ca)
1--TEST--
2Bug #73331 (NULL Pointer Dereference in WDDX Packet Deserialization with PDORow)
3--SKIPIF--
4<?php if (!extension_loaded("wddx") || !extension_loaded("pdo")) print "skip"; ?>
5--FILE--
6<?php
7
8$wddx = "<wddxPacket version='1.0'><header/><data><struct><var name='php_class_name'><string>PDORow</string></var></struct></data></wddxPacket>";
9var_dump(wddx_deserialize($wddx));
10?>
11--EXPECTF--
12Warning: wddx_deserialize(): Class pdorow can not be unserialized in %s73331.php on line %d
13NULL
14