1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 14:31:06 +02:00
Files
archived-php-src/ext/intl/tests/bug60192-sort.phpt
2014-11-19 20:23:00 +00:00

22 lines
457 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();
$a = array('a', 'b');
$c->sort($a);
--EXPECTF--
Catchable fatal error: Collator::sort(): Object not initialized in %s on line %d