1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Files
archived-php-src/ext/intl/tests/bug60192-compare.phpt
T
2011-11-03 16:20:11 +00:00

20 lines
452 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 = $c->compare('h', 'H');
--EXPECTF--
Catchable fatal error: Collator::compare(): Object not initialized in %s on line %d