Download src/php/php-src/ext/intl/tests/bug60192-compare.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 452 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/intl/tests/bug60192-compare.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/intl/tests/bug60192-compare.phpt
-
curl -L -o bug60192-compare.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/intl/tests/bug60192-compare.phpt
452 Bytes
| --TEST-- | |
| Bug #60192 (SegFault when Collator not constructed properly) | |
| --EXTENSIONS-- | |
| intl | |
| --FILE-- | |
| class Collator2 extends Collator{ | |
| public function __construct() { | |
| // omitting parent::__construct($someLocale); | |
| } | |
| } | |
| $c = new Collator2(); | |
| $a = $c->compare('h', 'H'); | |
| --EXPECTF-- | |
| Fatal error: Uncaught Error: Object not initialized in %s:%d | |
| Stack trace: | |
| #0 %s(%d): Collator->compare('h', 'H') | |
| #1 {main} | |
| thrown in %s on line %d | |