xref: /PHP-7.3/ext/wddx/tests/bug34306.phpt (revision 610c7fbe)
1--TEST--
2#34306 (wddx_serialize_value() crashes with long array keys)
3--SKIPIF--
4<?php if (!extension_loaded("wddx")) print "skip"; ?>
5--FILE--
6<?php
7
8$var = array('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa12345678901234567890123456789012345678901234567890ba12345678901234567890123456789012345678901234567890ba12345678901234567890123456789012345678901234567890ba12345678901234567890123456789012345678901234567890b12345678901234567891234567890123123121231211111' => 1);
9$buf = wddx_serialize_value($var, 'name');
10echo "OK\n";
11
12?>
13--EXPECT--
14OK
15