blob: 5f1a0df72f14a2170df58383a3566c26f893637e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--TEST--
#34306 (wddx_serialize_value() crashes with long array keys)
--SKIPIF--
<?php if (!extension_loaded("wddx")) print "skip"; ?>
--FILE--
<?php
$var = array('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa12345678901234567890123456789012345678901234567890ba12345678901234567890123456789012345678901234567890ba12345678901234567890123456789012345678901234567890ba12345678901234567890123456789012345678901234567890b12345678901234567891234567890123123121231211111' => 1);
$buf = wddx_serialize_value($var, 'name');
echo "OK\n";
?>
--EXPECT--
OK
|