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