summaryrefslogtreecommitdiff
path: root/ext/intl/tests/bug60192-getsortkey.phpt
blob: 39755ae8f9704082f8cfde596036971d4435a67e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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();
$c->getSortKey('h');
--EXPECTF--

Catchable fatal error: Collator::getSortKey(): Object not initialized in %s on line %d