mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
21 lines
448 B
PHP
21 lines
448 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() {
|
|
// omitting parent::__construct($someLocale);
|
|
}
|
|
}
|
|
|
|
$c = new Collator2();
|
|
$c->getSortKey('h');
|
|
--EXPECTF--
|
|
|
|
Catchable fatal error: Collator::getSortKey(): Object not initialized in %s on line %d
|