summaryrefslogtreecommitdiff
path: root/ext/intl/tests/bug62083.phpt
blob: 5b0f36e4f0872fb8fa8630993c27f9ddf1d4d3e2 (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 ($extract_type) must be either GRAPHEME_EXTR_COUNT, GRAPHEME_EXTR_MAXBYTES, or GRAPHEME_EXTR_MAXCHARS