-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/src/php/ext/intl/tests/
File Upload :
Current File : //usr/src/php/ext/intl/tests/bug60192-sort.phpt

--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 = array('a', 'b');
$c->sort($a);
--EXPECTF--

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

Copyright © 2017 || Recoded By Mr.Bumblebee