Bug #1381: mktime overflows (data type -long int- is too small)

From: Date: Thu, 06 May 1999 11:59:52 +0000
Subject: Bug #1381: mktime overflows (data type -long int- is too small)
Groups: php.dev 
Request: Send a blank email to php-dev+get-5384@lists.php.net to get a copy of this message
From: diab@diab.rulez.org Operating system: linux debian potato+2.2.7 PHP version: 3.0.7 PHP Bug Type: Other Bug description: mktime overflows (data type -long int- is too small) int mktime(int hour, int minute, int second, int month, int day, int year); it returns long integer, but it "wraps" between 2038-2039 <?php echo mktime(0,0,0,1,1,"2038") ?> result: 2145913200 <?php echo mktime(0,0,0,1,1,"2039") ?> result: -1 diab -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5384) next »