xref: /PHP-5.6/ext/intl/tests/bug72241.phpt (revision 082d1f23)
1--TEST--
2Bug #72241: get_icu_value_internal out-of-bounds read
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5--FILE--
6<?php
7$var1=str_repeat("A", 1000);
8$out = locale_get_primary_language($var1);
9echo strlen($out) . PHP_EOL;
10echo unpack('H*', $out)[1] . PHP_EOL;
11--EXPECT--
120
13