mirror of
https://github.com/php/php-src.git
synced 2025-01-21 19:24:16 +08:00
22 lines
482 B
PHP
22 lines
482 B
PHP
--TEST--
|
|
Bug #60192 (SegFault when Collator not constructed properly)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl')) { die('skip intl extension not available'); }
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
class Collator2 extends Collator{
|
|
public function __construct() {
|
|
// ommitting parent::__construct($someLocale);
|
|
}
|
|
}
|
|
|
|
$c = new Collator2();
|
|
$a = array('a', 'b');
|
|
$c->sortWithSortKeys($a);
|
|
--EXPECTF--
|
|
|
|
Catchable fatal error: Collator::sortWithSortKeys(): Object not initialized in %s on line %d
|