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, '50.1.2') >=  0) die('skip for ICU < 50.1.2'); ?>
8--FILE--
9<?php
10ini_set("intl.error_level", E_WARNING);
11
12$r = new ResourceBundle('en_US', NULL);
13$c = $r->get('calendar')->get('gregorian')->get('DateTimePatterns')->get(0);
14var_dump($c);
15
16ini_set('intl.default_locale', 'pt_PT');
17$r = new ResourceBundle(NULL, NULL);
18$c = $r->get('calendar')->get('gregorian')->get('DateTimePatterns')->get(0);
19var_dump($c);
20?>
21--EXPECT--
22string(14) "h:mm:ss a zzzz"
23string(12) "H:mm:ss zzzz"
24