xref: /PHP-7.1/ext/wddx/tests/bug72799.phpt (revision 113213f0)
1--TEST--
2Bug #72799: wddx_deserialize null dereference in php_wddx_pop_element
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    <var name="XXXX">
17        <boolean value="1">
18            <dateTime>1998-06-12T04:32:12+00</dateTime>
19        </boolean>
20    </var>
21</wddxPacket>
22XML;
23
24$array = wddx_deserialize($xml);
25var_dump($array);
26?>
27--EXPECT--
28NULL
29