xref: /PHP-8.0/ext/date/tests/bug64157.phpt (revision a475b2c1)
1--TEST--
2Test for bug #64157: DateTime::createFromFormat() reports confusing error message
3--CREDITS--
4Boro Sitnikovski <buritomath@yahoo.com>
5--INI--
6date.timezone = UTC
7--FILE--
8<?php
9DateTime::createFromFormat('s', '0');
10$lastErrors = DateTime::getLastErrors();
11print_r($lastErrors['errors'][0]);
12?>
13--EXPECT--
14A two digit second could not be found
15