Bug #9278: mktime returns "valid" values (not -1) for dates like 2/31/2001, etc.

From: Date: Thu, 15 Feb 2001 13:32:17 +0000
Subject: Bug #9278: mktime returns "valid" values (not -1) for dates like 2/31/2001, etc.
Groups: php.dev 
Request: Send a blank email to php-dev+get-46651@lists.php.net to get a copy of this message
From: pnh102@psu.edu Operating system: Mac OS X Server 1.2 PHP version: 3.0.16 PHP Bug Type: Misbehaving function Bug description: mktime returns "valid" values (not -1) for dates like 2/31/2001, etc. <? // Midnight on 2/31/2000 print mktime (0,0,0,2,31,2000); ?> <br> <? // Noon on 2/30/2001 print mktime (12,0,0,2,30,2001); ?>

« previous php.dev (#46651) next »