Bug #66963 [NEW]: Same code returns different results after php update

From: Date: Wed, 26 Mar 2014 22:52:54 +0000
Subject: Bug #66963 [NEW]: Same code returns different results after php update
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184907@lists.php.net to get a copy of this message
From: pedro dot bicudo at tgtconsult dot com dot br Operating system: Linux CentOS 6 PHP version: Irrelevant Package: Built-in web server Bug Type: Bug Bug description:Same code returns different results after php update Description: ------------ Using amazon-linux-ami/2013.09; Linux 3.4.48-45.46.amzn1.x86_64 on x86_64. Date shown for user is wrong. To isolate any database error during test, I've created the date with php and then show the timestamp. Different versions of php show different results. Version 5.3.28 is the latest PHP available for his AWS instance. Apache 2.2.26. Test script: --------------- $date=date_create("2014-01-01");echo date_timestamp_get($date); $date=date_create("2014-06-14");echo date_timestamp_get($date); Expected result: ---------------- For date 2014-01-01: php 5.3.26 returns 1388534400 (correct result) php 5.3.28 returns 1388541600 For date 2014-01-01: php 5.3.26 returns 1402704000 (correct result) php 5.3.28 returns 1402714800 -- Edit bug report at https://bugs.php.net/bug.php?id=66963&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66963&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66963&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66963&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66963&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66963&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66963&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66963&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66963&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66963&r=support Expected behavior: https://bugs.php.net/fix.php?id=66963&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66963&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66963&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66963&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66963&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66963&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66963&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66963&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66963&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66963&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66963&r=mysqlcfg

« previous php.bugs (#184907) next »