|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-03-28 09:10 UTC] php-bugs at allenjb dot me dot uk
[2019-03-28 09:30 UTC] cmb@php.net
-Package: Calendar related
+Package: Date/time related
-PHP Version: 7.1.27
+PHP Version: 7.2
[2019-03-28 11:35 UTC] derick@php.net
-Status: Open
+Status: Not a bug
[2019-03-28 11:35 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 02:00:01 2025 UTC |
Description: ------------ 1. ver 7.2.3 ksweb for android app build 2. check for leap year y2k error 3. checkdate works for 2,29, $y reports 1 4. phpinfo() for app default installation 5. huh? whatsa gdb bactrace? :-) Test script: --------------- <?php echo "<p>$ver; $tz</p>"; $y=1970; for ($y; $y<2020; $y++){ echo $leap = date("L", strtotime((string)($y))) ? "$y=yes; ":"$y=no; "; echo checkdate(2,29,$y); echo '; '; } ?> Expected result: ---------------- 1970=no; ; 1971=no; ; 1972=yes; 1; 1973=no; ; 1974=no; ; 1975=no; ; 1976=yes; 1; 1977=no; ; 1978=no; ; 1979=no; ; 1980=yes; 1; 1981=no; ; 1982=no; ; 1983=no; ; 1984=yes; 1; 1985=no; ; 1986=no; ; 1987=no; ; 1988=yes; 1; 1989=no; ; 1990=no; ; 1991=no; ; 1992=yes; 1; 1993=no; ; 1994=no; ; 1995=no; ; 1996=yes; 1; 1997=no; ; 1998=no; ; 1999=no; ; at this point i'd want to see 2000=yes; 1; instead of 2000=no; 1; 2001=no; ; 2002=no; ; 2003=no; ; 2004=no; 1; 2005=no; ; 2006=no; ; 2007=no; ; 2008=no; 1; 2009=no; ; 2010=no; ; 2011=no; ; 2012=no; 1; 2013=no; ; 2014=no; ; 2015=no; ; 2016=no; 1; 2017=no; ; 2018=no; ; 2019=no; ; same for 2004, 2008, 2012, 2016 and 2020 Actual result: -------------- dunno whatsa bactrace