summaryrefslogtreecommitdiff
path: root/ext/intl/tests/bug50590.phpt
blob: c39c333b23ad764d0affaa948b0f70926ff7a0b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Bug #50590 (IntlDateFormatter::parse result is limited to the integer range)
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
--FILE--
<?php

$fmt = new IntlDateFormatter("en_US", IntlDateFormatter::FULL, IntlDateFormatter::FULL);
var_dump($fmt->parse("Wednesday, January 20, 2038 3:14:07 AM GMT"));

?>
--EXPECTF--
%s(2147570047)