From: grumiche at powers dot com dot br Operating system: AIX 5.1 PHP version: 4.3.9 PHP Bug Type: Date/time related Bug description: Function mktime returns wrong date
Description: ------------ Function mktime returns wrong date. Problem found when installing eGroupWare at AIX. Machine: IBM RISC 6000 e30 OS: AIX 5.1 Maintenance Level 6 PHP 4.3.9 Apache 1.3.29-1 Without changes on php.ini. Compiled modules: '/configure' '--with-apxs=/opt/freeware/apache/sbin/apxs' '--with-mysql' '--enable-trackvars' '--with-ldap' '--with-gettext=/opt/freeware' '--with-mbstring' '--with-pear' '--with-gd=/opt/freeware' '--with-zlib=/opt/freeware' '--with-freetype-dir=/opt/freeware' '--with-ttf=/opt/freeware' '--enable-mbstring' '--with-jpeg-dir=/opt/freeware' '--with-png-dir=/opt/freeware' '--with-zlib-dir=/opt/freeware' Same error apears on another installation: Machine: IBM RISC 6000 43P OS: AIX 5.1 Maintenance Level 3 PHP 4.3.8 Apache 1.3.29-1 Without changes on php.ini. Compiled modules: './configure' '--with-apxs=/opt/freeware/apache/sbin/apxs' '--with-mysql' '--enable-trackvars' '--with-ldap' '--with-gettext=/opt/freeware' '--with-mbstring' '--with-pear' '--with-openssl=/opt/freeware' '--with-gd=/opt/freeware' '--with-zlib=/opt/freeware' Reproduce code: --------------- mktime(2,0,0,10,1 - (5 - 1), 2004,1) Expected result: ---------------- 1096261200 Actual result: -------------- 1096520400 -- Edit bug report at http://bugs.php.net/?id=30331&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30331&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30331&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30331&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30331&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30331&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30331&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30331&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30331&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30331&r=support Expected behavior: http://bugs.php.net/fix.php?id=30331&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30331&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30331&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30331&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30331&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30331&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30331&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30331&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30331&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30331&r=mysqlcfg
