diff options
Diffstat (limited to 'ext/intl/tests/bug60192-sort.phpt')
-rw-r--r-- | ext/intl/tests/bug60192-sort.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/intl/tests/bug60192-sort.phpt b/ext/intl/tests/bug60192-sort.phpt new file mode 100644 index 0000000..5705721 --- /dev/null +++ b/ext/intl/tests/bug60192-sort.phpt @@ -0,0 +1,21 @@ +--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 |