From: s679160 at yandex dot ru Operating system: Linux PHP version: 5.2.3 PHP Bug Type: Date/time related Bug description: strtotime() can't return any properly result
Description: ------------ Transfer bellow code form RH Linux 2.4.20-8smp+PHP 4.4.1 (cli) to RH Linux 2.6.18-8.1.4e15 + PHP 5.1.6 (cli) Zend 2.1.0 In the newer system strtotime() don't return ANY result (and error too). In the older system strtotime() return needed value. Is it strtotime problem or wrong algorythm ? Excuse my poor English ) Reproduce code: --------------- $base_day="2006-06-446"; echo "bd=$base_day\n"; $real_day=strtotime($base_day); echo "may_be_error=".strtotime($base_day)."\n"; echo "rd1=$real_day\n"; Expected result: ---------------- In the 1st system (older) echo is: bd=2006-06-446 may_be_error=1187557200 rd1=1187557200 Actual result: -------------- In the 2nd system (newer) echo is: bd=2006-06-446 may_be_error= rd1= -- Edit bug report at http://bugs.php.net/?id=42361&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42361&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42361&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42361&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42361&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42361&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42361&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42361&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42361&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42361&r=support Expected behavior: http://bugs.php.net/fix.php?id=42361&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42361&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42361&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42361&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42361&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42361&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42361&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42361&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42361&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42361&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42361&r=mysqlcfg