mirror of
https://github.com/php/php-src.git
synced 2024-12-13 03:44:17 +08:00
24 lines
586 B
PHP
24 lines
586 B
PHP
--TEST--
|
|
Bug #73831 (NULL Pointer Dereference while unserialize php object)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("wddx")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
$xml = <<<EOF
|
|
<?xml version="1.0" ?>
|
|
<wddxPacket version="1.0">
|
|
<struct>
|
|
<var name="php_class_name">
|
|
<string>Throwable</string>
|
|
</var>
|
|
</struct>
|
|
</wddxPacket>
|
|
EOF;
|
|
try {
|
|
$wddx = wddx_deserialize($xml);
|
|
} catch(Error $e) { echo $e->getMessage(); }
|
|
?>
|
|
--EXPECTF--
|
|
Warning: wddx_deserialize(): Class throwable can not be instantiated in %sbug73831.php on line %d
|
|
Cannot instantiate interface Throwable
|