From: Hartmut Holzgraefe Date: Wed, 31 Mar 2004 17:59:28 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.6RC1~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f1a942add8ada7b7e2599ce586100b49dfc0f46;p=php MFH --- diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index cee60d092a..59461aa421 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -845,9 +845,11 @@ void _php_strftime(INTERNAL_FUNCTION_PARAMETERS, int gm) if (Z_STRLEN_PP(format_arg)==0) { RETURN_FALSE; } +#ifdef PHP_WIN32 if (timestamp < 0) { RETURN_FALSE; } +#endif format = Z_STRVAL_PP(format_arg); if (gm) { ta = php_gmtime_r(×tamp, &tmbuf);