summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/datetime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c
index 44298107f7..cb97eb6d11 100644
--- a/ext/standard/datetime.c
+++ b/ext/standard/datetime.c
@@ -616,7 +616,7 @@ char *php_std_date(time_t t)
/* {{{ proto bool checkdate(int month, int day, int year)
- Returns true(1) if it is a valid date */
+ Returns true(1) if it is a valid date in gregorian calendar */
PHP_FUNCTION(checkdate)
{
pval **month, **day, **year;
@@ -640,7 +640,7 @@ PHP_FUNCTION(checkdate)
m = (*month)->value.lval;
d = (*day)->value.lval;
- if (y < 0 || y > 32767) {
+ if (y < 1 || y > 32767) {
RETURN_FALSE;
}
if (m < 1 || m > 12) {