18 lines
445 B
PHP
18 lines
445 B
PHP
--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
|