Annotation of embedaddon/php/ext/intl/tests/bug60192-sortwithsortkeys.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Bug #60192 (SegFault when Collator not constructed properly)
        !             3: --SKIPIF--
        !             4: <?php
        !             5:        if (!extension_loaded('intl')) { die('skip intl extension not available'); }
        !             6: ?>
        !             7: --FILE--
        !             8: <?php
        !             9: 
        !            10: class Collator2 extends Collator{
        !            11:        public function __construct() {
        !            12:                // ommitting parent::__construct($someLocale);
        !            13:        }
        !            14: }
        !            15: 
        !            16: $c = new Collator2();
        !            17: $a = array('a', 'b');
        !            18: $c->sortWithSortKeys($a);
        !            19: --EXPECTF--
        !            20: 
        !            21: Catchable fatal error: Collator::sortWithSortKeys(): Object not initialized in %s on line %d

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>