bug72241.phpt 298 B

123456789101112
  1. --TEST--
  2. Bug #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);
  9. echo strlen($out) . PHP_EOL;
  10. echo unpack('H*', $out)[1] . PHP_EOL;
  11. --EXPECT--
  12. 0