xref: /PHP-7.3/ext/wddx/tests/bug73831.phpt (revision 8d2539fa)
1--TEST--
2Bug #73831 (NULL Pointer Dereference while unserialize php object)
3--SKIPIF--
4<?php if (!extension_loaded("wddx")) print "skip"; ?>
5--FILE--
6<?php
7$xml = <<<EOF
8<?xml version="1.0" ?>
9<wddxPacket version="1.0">
10	<struct>
11		<var name="php_class_name">
12			<string>Throwable</string>
13                </var>
14        </struct>
15</wddxPacket>
16EOF;
17try {
18	$wddx = wddx_deserialize($xml);
19} catch(Error $e) { echo $e->getMessage(); }
20?>
21--EXPECTF--
22Warning: wddx_deserialize(): Class throwable can not be instantiated in %sbug73831.php on line %d
23Cannot instantiate interface Throwable
24