Bug #2292: CHECKDATE function: a little problem.

From: Date: Tue, 14 Sep 1999 09:05:40 +0000
Subject: Bug #2292: CHECKDATE function: a little problem.
Groups: php.dev 
Request: Send a blank email to php-dev+get-10884@lists.php.net to get a copy of this message
From: mvca@yahoo.com Operating system: Linux 2.0.35 (Slackware 3.5) and Linux 2.2.12 (Red Hat 6.0) PHP version: 3.0.12 PHP Bug Type: Other Bug description: CHECKDATE function: a little problem. Hi, excuse for my english. The problem is little. The function CHECKDATE want 3 INT parameters (int checkdate(int month, int day, int year)). I use PHP Apache module and PHP interpreter with a PostgreSQL interface. If I use a day value equal 08 or 09 the function have problem. The examples: ------------------------------------------ <?php if (checkdate(02,09,1999)) echo "VALID"; else echo "NOT VALID"; ?> ------------------------------------------- The result is NOT VALID! If I use the quotation mark the result is right: ------------------------------------------- <?php if (checkdate(02,"09",1999)) echo "VALID"; else echo "NOT VALID"; ?> -------------------------------------------- The result is VALID. If I remove the 0 before the 8 or 9 the result is right : ------------------------------------------- <?php if (checkdate(02,9,1999)) echo "VALID"; else echo "NOT VALID"; ?> -------------------------------------------- The result is VALID. I tried this examples on PHP v.3.0.6 and PHP v.3.0.12 with the same result. Thank for your work. Yours sincerely. Angelo CONFLITTI.

« previous php.dev (#10884) next »