dis-bench / src /php /php-src /ext /intl /tests /bug60192-compare.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
452 Bytes
--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 = $c->compare('h', 'H');
?>
--EXPECTF--
Fatal error: Uncaught Error: Object not initialized in %s:%d
Stack trace:
#0 %s(%d): Collator->compare('h', 'H')
#1 {main}
thrown in %s on line %d