xref: /php-src/ext/intl/tests/bug60192-sort.phpt (revision 74859783)
1--TEST--
2Bug #60192 (SegFault when Collator not constructed properly)
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7
8class Collator2 extends Collator{
9    public function __construct() {
10        // omitting parent::__construct($someLocale);
11    }
12}
13
14$c = new Collator2();
15$a = array('a', 'b');
16$c->sort($a);
17?>
18--EXPECTF--
19Fatal error: Uncaught Error: Object not initialized in %s:%d
20Stack trace:
21#0 %s(%d): Collator->sort(Array)
22#1 {main}
23  thrown in %s on line %d
24