bug60192-getsortkey.phpt 449 B

1234567891011121314151617181920
  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. class Collator2 extends Collator{
  10. public function __construct() {
  11. // ommitting parent::__construct($someLocale);
  12. }
  13. }
  14. $c = new Collator2();
  15. $c->getSortKey('h');
  16. --EXPECTF--
  17. Catchable fatal error: Collator::getSortKey(): Object not initialized in %s on line %d