summaryrefslogtreecommitdiff
path: root/ext/standard/tests/serialize/unserializeS.phpt
blob: 897208bb597fdf8775c11c306441fb23ab502c67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug MOPB-29 (wrong length calculation for S)
--INI--
error_reporting=0
--FILE--
<?php
$str = 'S:'.(100*3).':"'.str_repeat('\61', 100).'"';
$arr = array(str_repeat('"', 200)."1"=>1,str_repeat('"', 200)."2"=>1);

$data = unserialize($str);
var_dump($data);

--EXPECT--
bool(false)