-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug #73831 - NULL Pointer Dereference while unserialize php object
- Loading branch information
Showing
2 changed files
with
43 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters