diff options
| author | Derick Rethans <derick@php.net> | 2008-07-14 17:36:12 +0000 |
|---|---|---|
| committer | Derick Rethans <derick@php.net> | 2008-07-14 17:36:12 +0000 |
| commit | c76ba173a91d9503c0912f3b546ca5aa9c45cb61 (patch) | |
| tree | 7c82ae799d13613f7d11941ee68ae61a25bb7a14 /ext/date/php_date.c | |
| parent | be5633612a0a6646b167bddeb15299dba726948a (diff) | |
| download | php-git-c76ba173a91d9503c0912f3b546ca5aa9c45cb61.tar.gz | |
- MFH: Added a warning to the error struct in case a parsed-date was found to
be invalid.
Diffstat (limited to 'ext/date/php_date.c')
| -rw-r--r-- | ext/date/php_date.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 78629444a3..bcfc9405a1 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1610,7 +1610,7 @@ PHP_FUNCTION(checkdate) RETURN_FALSE; } - if (y < 1 || y > 32767 || m < 1 || m > 12 || d < 1 || d > timelib_days_in_month(y, m)) { + if (y < 1 || y > 32767 || timelib_valid_date(y, m, d)) { RETURN_FALSE; } RETURN_TRUE; /* True : This month, day, year arguments are valid */ |
