xref: /PHP-7.2/ext/wddx/tests/bug73173.phpt (revision 604827b6)
1--TEST--
2Bug #73173: huge memleak when wddx_unserialize
3--SKIPIF--
4<?php if (!extension_loaded("wddx")) print "skip"; ?>
5--FILE--
6<?php
7
8$xml=<<<XML
9<?xml version='1.0'?>
10<!DOCTYPE wddxPacket SYSTEM 'wddx_0100.dtd'>
11<wddxPacket>
12<var name="
13XML;
14
15$xml .= str_repeat('F',0x80000);
16
17$xml .= <<<XML
18">
19</wddxPacket>
20XML;
21var_dump(wddx_deserialize($xml));
22
23?>
24--EXPECT--
25NULL
26