1--TEST--
2ResourceBundle constructor bundle accepts NULL for first two arguments
3--INI--
4date.timezone=Atlantic/Azores
5--EXTENSIONS--
6intl
7--SKIPIF--
8<?php if (version_compare(INTL_ICU_VERSION, '51.2') < 0) die('skip for ICU >= 51.2'); ?>
9<?php if (version_compare(INTL_ICU_VERSION, '72.1') >= 0) die('skip for ICU < 72.1'); ?>
10--FILE--
11<?php
12ini_set("intl.error_level", E_WARNING);
13
14$r = new ResourceBundle('en_US', NULL);
15$c = $r->get('calendar')->get('gregorian')->get('DateTimePatterns')->get(0);
16var_dump($c);
17
18ini_set('intl.default_locale', 'pt_PT');
19$r = new ResourceBundle(NULL, NULL);
20$c = $r->get('calendar')->get('gregorian')->get('DateTimePatterns')->get(0);
21var_dump($c);
22?>
23--EXPECT--
24string(14) "h:mm:ss a zzzz"
25string(13) "HH:mm:ss zzzz"
26