summaryrefslogtreecommitdiff
path: root/ext/intl/tests/bug62083.phpt
blob: 4f08af698aaba46e8bf3ef0dc9827c49a2940fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
Bug #62083: grapheme_extract() leaks memory
--SKIPIF--
<?php
if (!extension_loaded('intl'))
    die('skip intl extension not enabled');
--FILE--
<?php
$arr1 = array();
try {
    grapheme_extract(-1, -1, -1,-1, $arr1);
} catch (ValueError $exception) {
    echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
grapheme_extract(): Argument #3 ($type) must be one of GRAPHEME_EXTR_COUNT, GRAPHEME_EXTR_MAXBYTES, or GRAPHEME_EXTR_MAXCHARS