Skip to content

Commit 821014d

Browse files
committed
fix windows case attempt
1 parent 7590d60 commit 821014d

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

ext/intl/tests/dateformat_format_references.phpt

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,25 @@
22
Fix dateformat_format() with array argument with values as references.
33
--FILE--
44
<?php
5-
$a = 24;
6-
$localtime_arr = array (
7-
'tm_sec' => &$a ,
8-
'tm_min' => 3,
9-
'tm_hour' => 19,
10-
'tm_mday' => 3,
11-
'tm_mon' => 3,
12-
'tm_year' => 105,
13-
);
14-
$fmt = datefmt_create('en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/New_York', IntlDateFormatter::GREGORIAN);
15-
$formatted = datefmt_format($fmt , $localtime_arr);
16-
var_dump($formatted);
5+
6+
function ut_main()
7+
{
8+
$a = 24;
9+
$localtime_arr = array (
10+
'tm_sec' => &$a ,
11+
'tm_min' => 3,
12+
'tm_hour' => 19,
13+
'tm_mday' => 3,
14+
'tm_mon' => 3,
15+
'tm_year' => 105,
16+
);
17+
$fmt = ut_datefmt_create('en_US', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'America/New_York', IntlDateFormatter::GREGORIAN);
18+
$formatted = ut_datefmt_format($fmt , $localtime_arr);
19+
var_dump($formatted);
20+
}
21+
22+
include_once( 'ut_common.inc' );
23+
ut_run();
1724
?>
1825
--EXPECTF--
1926
string(%d) "Sunday, April 3, 2005 at 7:03:24%aPM Eastern Daylight Time"

0 commit comments

Comments
 (0)