Req #69529 [NEW]: strtotime fix

From: Date: Fri, 24 Apr 2015 21:34:55 +0000
Subject: Req #69529 [NEW]: strtotime fix
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192333@lists.php.net to get a copy of this message
From: serella_c at hotmail dot com Operating system: N/A PHP version: Irrelevant Package: *General Issues Bug Type: Feature/Change Request Bug description:strtotime fix Description: ------------ --- From manual page: http://www.php.net/function.strtotime --- Im wondering if there is ever going to be a fix for what i consider to be a bug. It wouldnt be acceptable to iterate over an array and when asking for next and last the result being best guessed so i dont see why this is any different. We should not have to resort to calling strtotime with a date in the middle of the month then adjust the date required thats just a hack and this has been a known issue for several years, its time to fix strtotime. Expected result: ---------------- strtotime should return what is asked of it. If i ask for last month it should return last month regardless of the day in the month be it the 31st, 15th or 1st the result should be the same. across the board. Likewise for next month, years etc. It is quite clear that when asking for next or last of something we really do mean the next or last regardless of day numbers involved. -- Edit bug report at https://bugs.php.net/bug.php?id=69529&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69529&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69529&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69529&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69529&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69529&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69529&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69529&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69529&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69529&r=support Expected behavior: https://bugs.php.net/fix.php?id=69529&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69529&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69529&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69529&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69529&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69529&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69529&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69529&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69529&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69529&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69529&r=mysqlcfg

« previous php.bugs (#192333) next »