Re: PHP 4.0 Bug #5037 Updated: mktime / strftime bugs

From: Date: Wed, 14 Jun 2000 22:12:59 +0000
Subject: Re: PHP 4.0 Bug #5037 Updated: mktime / strftime bugs
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-21356@lists.php.net to get a copy of this message
Ying Zhang wrote: > > I am very sorry, my example was wrong. Please try this instead: > > <? > echo "\nTest 1:" . strftime("%Y-%m-%d", 0); > echo "\nTest 2:" . strftime("%Y-%m-%d", -1); > echo "\n\n"; > ?> > > This will run without problems in Linux: > > Test 1:1969-12-31 > Test 2:1969-12-31 > > However it will fail in Windows 2000. Now if you comment out test 2, it will > run. so we should return FALSE without calling c-lib strftime for timestamps < 0

« previous php.dev (#21356) next »