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

From: Date: Wed, 21 Feb 2001 08:31:45 +0000
Subject: PHP 4.0 Bug #9278 Updated: 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-47127@lists.php.net to get a copy of this message
ID: 9278 Updated by: joey Reported By: pnh102@psu.edu Old-Status: Open Status: Closed Old-Bug Type: Misbehaving function Bug Type: *General Issues Assigned To: Comments: This is intentional. See http://www.php.net/manual/en/function.mktime.php Previous Comments: --------------------------------------------------------------------------- [2001-02-15 08:32:17] pnh102@psu.edu <? // 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); ?> --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9278&edit=2

« previous php.dev (#47127) next »