Bug #64207 [Opn->Fbk]: unix time() compare with integer

From: Date: Wed, 17 Jun 2015 18:24:36 +0000
Subject: Bug #64207 [Opn->Fbk]: unix time() compare with integer
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193623@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64207&edit=1

 ID:                 64207
 Updated by:         cmb@php.net
 Reported by:        mabelair at sympatico dot ca
 Summary:            unix time() compare with integer
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Date/time related
 Operating System:   OSX 10.7.5 / win XP
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------
[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)

« previous php.bugs (#193623) next »