]> granicus.if.org Git - php/commitdiff
disallow negative timestamps on windows only
authorHartmut Holzgraefe <hholzgra@php.net>
Wed, 31 Mar 2004 17:57:33 +0000 (17:57 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Wed, 31 Mar 2004 17:57:33 +0000 (17:57 +0000)
ext/standard/datetime.c

index b639c37a2fae400d3bd42963ac6530df5622d6b5..d033612499449a020043ebc0614889911a6f1322 100644 (file)
@@ -1017,9 +1017,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(&timestamp, &tmbuf);