ru_php/ext/intl/tests/bug60192-sort.phpt

24 lines
425 B
PHP

--TEST--
Bug #60192 (SegFault when Collator not constructed properly)
--EXTENSIONS--
intl
--FILE--
<?php
class Collator2 extends Collator{
public function __construct() {
// omitting parent::__construct($someLocale);
}
}
$c = new Collator2();
$a = array('a', 'b');
try {
$c->sort($a);
} catch (Throwable $e) {
echo $e::class, ': ', $e->getMessage(), PHP_EOL;
}
?>
--EXPECT--
Error: Object not initialized