php-src/ext/intl/tests/bug60192-sort.phpt
Nikita Popov 7485978339
Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

24 lines
455 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');
$c->sort($a);
?>
--EXPECTF--
Fatal error: Uncaught Error: Object not initialized in %s:%d
Stack trace:
#0 %s(%d): Collator->sort(Array)
#1 {main}
thrown in %s on line %d