Annotation of embedaddon/php/ext/date/tests/bug41709.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #41709 (strtotime() does not handle 00.00.0000)
3: --FILE--
4: <?php
5: date_default_timezone_set("UTC");
6:
7: $date_string = '00.00.0000 - 00:00:00';
8: print_r(date_parse($date_string));
9:
10: ?>
11: --EXPECT--
12: Array
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: )
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>