Bug #64207 [Fbk->NoF]: unix time() compare with integer
Edit report at https://bugs.php.net/bug.php?id=64207&edit=1
ID: 64207
Updated by: php-bugs@lists.php.net
Reported by: mabelair at sympatico dot ca
Summary: unix time() compare with integer
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Date/time related
Operating System: OSX 10.7.5 / win XP
PHP Version: Irrelevant
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2015-06-17 18:24:36] cmb@php.net
I can't reproduce this issue, see <http://3v4l.org/cCY3N>. It's
unlikely that the 32bit architecture is causing a problem, because
1360256400 < 2**31.
Please double check that mktime() actually returns the assumed
value.
------------------------------------------------------------------------
[2013-02-14 02:48:25] mabelair at sympatico dot ca
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 this bug report at https://bugs.php.net/bug.php?id=64207&edit=1
Thread (3 messages)