diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-18 11:41:19 +0100 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-18 11:41:19 +0100 |
| commit | 65c9a3f1a1649449cde4e276b8fa76147533a779 (patch) | |
| tree | 77c38a686d1137e563595353207fd2d225b171c1 /ext/intl/tests | |
| parent | 4eb9e937289df773573279df8aff23e778e4e9f6 (diff) | |
| parent | 623a11d7de80c9f6c9d7dc223071e701df450820 (diff) | |
| download | php-git-65c9a3f1a1649449cde4e276b8fa76147533a779.tar.gz | |
Merge branch 'PHP-7.3' into PHP-7.4
Diffstat (limited to 'ext/intl/tests')
| -rw-r--r-- | ext/intl/tests/dateformat_bug65683_2.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/intl/tests/dateformat_bug65683_2.phpt b/ext/intl/tests/dateformat_bug65683_2.phpt new file mode 100644 index 0000000000..67d9d7884a --- /dev/null +++ b/ext/intl/tests/dateformat_bug65683_2.phpt @@ -0,0 +1,12 @@ +--TEST-- +Bug #65683: Intl does not support DateTimeImmutable (using datefmt_format_object) +--FILE-- +<?php +$date = date_create('1970-01-01'); +$date_imm = date_create_immutable('1970-01-01'); +var_dump(datefmt_format_object($date, null, 'fr_FR')); +var_dump(datefmt_format_object($date_imm, null, 'fr_FR')); +?> +--EXPECT-- +string(24) "1 janv. 1970 à 00:00:00" +string(24) "1 janv. 1970 à 00:00:00" |
