From: Operating system: CENTOS 5 64 bit PHP version: 5.3.8 Package: Date/time related Bug Type: Feature/Change Request Bug description:ZERO DATES IN STRTOTIME
Description: ------------ If you could please include a 3rd switch to strtotime ( string $time [, int $now = time() ], [legacy32bit = boolean] ) This would both allow large date ranges as well is be backwards supporting of database default timestamps ie 0000-00-00 00:00:00 they get converted to an ambiguous -0001-11-30 00:00:00. if it was used like this strtotime($DBROW['timestampcolumn'], time(), true) and it returns NULL as it did in the 32-bit version this whole issue could be avoided and it can still support a very large date range. -- Edit bug report at https://bugs.php.net/bug.php?id=60288&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60288&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60288&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60288&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60288&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60288&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60288&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60288&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60288&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60288&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60288&r=support Expected behavior: https://bugs.php.net/fix.php?id=60288&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60288&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60288&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60288&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60288&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60288&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60288&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60288&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60288&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60288&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60288&r=mysqlcfg