mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
8c67460a10
Proper soltion would be to call serialize/unserialize and deal with the result,
but this requires more work that should be done by wddx maintainer (not me).
(cherry picked from commit 6045de69c7)
Conflicts:
ext/wddx/wddx.c
16 lines
494 B
PHP
16 lines
494 B
PHP
--TEST--
|
|
Bug #73331 (NULL Pointer Dereference in WDDX Packet Deserialization with PDORow)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("wddx") || !extension_loaded("pdo")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$wddx = "<wddxPacket version='1.0'><header/><data><struct><var name='php_class_name'><string>PDORow</string></var></struct></data></wddxPacket>";
|
|
var_dump(wddx_deserialize($wddx));
|
|
?>
|
|
--EXPECTF--
|
|
|
|
Warning: wddx_deserialize(): Class pdorow can not be unserialized in %s73331.php on line %d
|
|
NULL
|
|
|