xref: /php-src/ext/date/tests/bug41709.phpt (revision ae2c8698)
1--TEST--
2Bug #41709 (strtotime() does not handle 00.00.0000)
3--FILE--
4<?php
5date_default_timezone_set("UTC");
6
7$date_string = '00.00.0000 - 00:00:00';
8print_r(date_parse($date_string));
9
10?>
11--EXPECT--
12Array
13(
14    [year] => 0
15    [month] => 0
16    [day] => 0
17    [hour] => 0
18    [minute] => 0
19    [second] => 0
20    [fraction] => 0
21    [warning_count] => 1
22    [warnings] => Array
23        (
24            [22] => The parsed date was invalid
25        )
26
27    [error_count] => 1
28    [errors] => Array
29        (
30            [11] => Unexpected character
31        )
32
33    [is_localtime] =>
34)
35