xref: /PHP-7.1/ext/wddx/tests/bug68996.phpt (revision 3550cc5f)
1--TEST--
2Bug #68996 (Invalid free of CG(interned_empty_string))
3--SKIPIF--
4<?php
5if (getenv("USE_ZEND_ALLOC") !== "0")
6    print "skip Need Zend MM disabled";
7?>
8--FILE--
9<?php
10echo wddx_serialize_value("\xfc\x63") . "\n";
11echo wddx_serialize_value([ "\xfc\x63" => "foo" ]) . "\n";
12?>
13--EXPECTF--
14<wddxPacket version='1.0'><header/><data><string></string></data></wddxPacket>
15<wddxPacket version='1.0'><header/><data><struct><var name=''><string>foo</string></var></struct></data></wddxPacket>
16