mirror of
https://github.com/php/php-src.git
synced 2024-09-30 22:36:12 +00:00
15 lines
352 B
Plaintext
15 lines
352 B
Plaintext
|
--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
|