1--TEST-- 2Bug #72750: wddx_deserialize null dereference 3--SKIPIF-- 4<?php 5if (!extension_loaded('wddx')) { 6 die('skip. wddx not available'); 7} 8?> 9--FILE-- 10<?php 11 12$xml = <<< XML 13<?xml version='1.0'?> 14<!DOCTYPE wddxPacket SYSTEM 'wddx_0100.dtd'> 15<wddxPacket version='1.0'> 16<header/> 17 <data> 18 <struct> 19 <var name='aBinary'> 20 <binary length='11'>\\tYmluYXJRhdGE=</binary> 21 </var> 22 </struct> 23 </data> 24</wddxPacket> 25XML; 26 27$array = wddx_deserialize($xml); 28var_dump($array); 29?> 30--EXPECT-- 31array(1) { 32 ["aBinary"]=> 33 string(9) "������FF" 34} 35