bug60192-getlocale.phpt 458 B

12345678910111213141516171819202122
  1. --TEST--
  2. Bug #60192 (SegFault when Collator not constructed properly)
  3. --EXTENSIONS--
  4. intl
  5. --FILE--
  6. <?php
  7. class Collator2 extends Collator{
  8. public function __construct() {
  9. // omitting parent::__construct($someLocale);
  10. }
  11. }
  12. $c = new Collator2();
  13. $c->getLocale(Locale::ACTUAL_LOCALE);
  14. ?>
  15. --EXPECTF--
  16. Fatal error: Uncaught Error: Object not initialized in %s:%d
  17. Stack trace:
  18. #0 %s(%d): Collator->getLocale(0)
  19. #1 {main}
  20. thrown in %s on line %d