mirror of
https://github.com/php/php-src.git
synced 2024-09-30 22:36:12 +00:00
a475b2c1db
Changed error message to make sense
15 lines
352 B
PHP
15 lines
352 B
PHP
--TEST--
|
|
Test for bug #64157: DateTime::createFromFormat() reports confusing error message
|
|
--CREDITS--
|
|
Boro Sitnikovski <buritomath@yahoo.com>
|
|
--INI--
|
|
date.timezone = UTC
|
|
--FILE--
|
|
<?php
|
|
DateTime::createFromFormat('s', '0');
|
|
$lastErrors = DateTime::getLastErrors();
|
|
print_r($lastErrors['errors'][0]);
|
|
?>
|
|
--EXPECT--
|
|
A two digit second could not be found
|