diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2013-03-14 05:42:27 +0000 |
---|---|---|
committer | <> | 2013-04-03 16:25:08 +0000 |
commit | c4dd7a1a684490673e25aaf4fabec5df138854c4 (patch) | |
tree | 4d57c44caae4480efff02b90b9be86f44bf25409 /ext/intl/tests/bug60192-sort.phpt | |
download | php2-master.tar.gz |
Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2.HEADphp-5.4.13master
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 |