xref: /php-src/ext/intl/tests/bug62083.phpt (revision 74859783)
1--TEST--
2Bug #62083: grapheme_extract() leaks memory
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7$arr1 = array();
8try {
9    grapheme_extract(-1, -1, -1,-1, $arr1);
10} catch (ValueError $exception) {
11    echo $exception->getMessage() . "\n";
12}
13?>
14--EXPECT--
15grapheme_extract(): Argument #3 ($type) must be one of GRAPHEME_EXTR_COUNT, GRAPHEME_EXTR_MAXBYTES, or GRAPHEME_EXTR_MAXCHARS
16