From: mabelair at sympatico dot ca
Operating system: OSX 10.7.5 / win XP
PHP version: Irrelevant
Package: Date/time related
Bug Type: Bug
Bug description:unix time() compare with integer
Description:
------------
$sd = mktime(12,0,0,$mois, $jour, $annee);
if ($sd < 1360731600) {
include("agenda_paiement_vieux.php");
}
else {
include("agenda_paiement_nouv.php");
}
6 février 2013 (unix time) fonctionne si $sd = 1360170000 ALL ok !
7 février 2013 (unix time) ne fonctionne pas si $sd = 1360256400 do not
work
11 février 2013 (unix time) fonctionne si $sd = 1360731600 ALL ok!
It seems to be an hole is the serie ??
machine is 32 bit running OSX 10.7.5 Lion and same problem with
machine is 32 bit running Win/XP
Thank you and goodnite.
Michel
Test script:
---------------
$sd = mktime(12,0,0,$mois, $jour, $annee);
if ($sd < 1360731600) {
include("agenda_paiement_vieux.php");
}
else {
include("agenda_paiement_nouv.php");
}
Expected result:
----------------
Expecting:
TRUE going to sub-routine agenda_paiement_vieux.php when $sd=1360256400
Actual result:
--------------
False going to sub-routine agenda_paiement_nouv.php when $sd=1360256400
--
Edit bug report at https://bugs.php.net/bug.php?id=64207&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=64207&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=64207&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=64207&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64207&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64207&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64207&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64207&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64207&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64207&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64207&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=64207&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=64207&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64207&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64207&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64207&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64207&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64207&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64207&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64207&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64207&r=mysqlcfg