1--TEST-- 2Bug #67253 (timelib_meridian_with_check out-of-bounds read) 3--INI-- 4date.timezone=Europe/Berlin 5--FILE-- 6<?php 7$z = ''; 8var_dump(date_parse_from_format("aHa0", "0=G{$z}9UCNnF")); 9?> 10--EXPECT-- 11array(12) { 12 ["year"]=> 13 bool(false) 14 ["month"]=> 15 bool(false) 16 ["day"]=> 17 bool(false) 18 ["hour"]=> 19 bool(false) 20 ["minute"]=> 21 bool(false) 22 ["second"]=> 23 bool(false) 24 ["fraction"]=> 25 bool(false) 26 ["warning_count"]=> 27 int(0) 28 ["warnings"]=> 29 array(0) { 30 } 31 ["error_count"]=> 32 int(3) 33 ["errors"]=> 34 array(2) { 35 [0]=> 36 string(29) "A meridian could not be found" 37 [9]=> 38 string(43) "Not enough data available to satisfy format" 39 } 40 ["is_localtime"]=> 41 bool(false) 42} 43