MDL_41126 phpunit: Timestamp should be less than 2038
http://php.net/manual/en/datetime.gettimestamp.php#114590 In 32-bit system the unix timestamp will overflow if the date goes beyond year 2038 and this method will return false.
This commit is contained in:
@@ -181,7 +181,7 @@ class mod_data_generator_testcase extends advanced_testcase {
|
||||
|
||||
$contents = array();
|
||||
$contents[] = array('one', 'two', 'three', 'four');
|
||||
$contents[] = '01-01-2100';
|
||||
$contents[] = '01-01-2037'; // It should be lower than 2038, to avoid failing on 32-bit windows.
|
||||
$contents[] = 'one';
|
||||
$contents[] = array('one', 'two', 'three', 'four');
|
||||
$contents[] = '12345';
|
||||
|
||||
Reference in New Issue
Block a user