1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 06:21:12 +02:00
Files
archived-php-src/ext/wddx/tests/bug68996.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

16 lines
493 B
PHP

--TEST--
Bug #68996 (Invalid free of CG(interned_empty_string))
--SKIPIF--
<?php
if (getenv("USE_ZEND_ALLOC") !== "0")
print "skip Need Zend MM disabled";
?>
--FILE--
<?php
echo wddx_serialize_value("\xfc\x63") . "\n";
echo wddx_serialize_value([ "\xfc\x63" => "foo" ]) . "\n";
?>
--EXPECT--
<wddxPacket version='1.0'><header/><data><string></string></data></wddxPacket>
<wddxPacket version='1.0'><header/><data><struct><var name=''><string>foo</string></var></struct></data></wddxPacket>