1--TEST-- 2Bug #41964 (strtotime returns a timestamp for non-time string of pattern '(A|a) .+') 3--FILE-- 4<?php 5date_default_timezone_set("UTC"); 6 7error_reporting(0); 8 9$res = date_parse('Ask the Experts'); 10var_dump($res['zone'], $res['tz_abbr']); 11echo "\n"; 12 13$res = date_parse('A '); 14var_dump($res['zone'], $res['tz_abbr']); 15echo "\n"; 16 17$res = date_parse('A'); 18var_dump($res['zone'], $res['tz_abbr']); 19echo "\n"; 20 21$res = date_parse('a '); 22var_dump($res['zone'], $res['tz_abbr']); 23echo "\n"; 24 25$res = date_parse('a'); 26var_dump($res['zone'], $res['tz_abbr']); 27echo "\n"; 28 29$res = date_parse('A Revolution in Development'); 30var_dump($res['zone'], $res['tz_abbr']); 31echo "\n"; 32 33$res = date_parse('a nothing'); 34var_dump($res['zone'], $res['tz_abbr']); 35echo "\n"; 36 37 38?> 39--EXPECT-- 40NULL 41NULL 42 43int(3600) 44string(1) "A" 45 46int(3600) 47string(1) "A" 48 49int(3600) 50string(1) "A" 51 52int(3600) 53string(1) "A" 54 55int(3600) 56string(1) "A" 57 58int(3600) 59string(1) "A" 60