Bug #52469 [Opn->Fbk]: Datetime affect the division

From: Date: Wed, 28 Jul 2010 10:13:39 +0000
Subject: Bug #52469 [Opn->Fbk]: Datetime affect the division
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-152874@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52469&edit=1

 ID:                 52469
 Updated by:         degeberg@php.net
 Reported by:        info at mirgorod dot ru
 Summary:            Datetime affect the division
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Date/time related
 PHP Version:        Irrelevant
 Block user comment: N

 New Comment:

Please try using this snapshot:

  http://snaps.php.net/php5.3-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

Can't reproduce using 5.3-dev from SVN.


Previous Comments:
------------------------------------------------------------------------
[2010-07-28 12:09:12] info at mirgorod dot ru

Sorry, this true description: Several launches of diff affects the
operation of division in php 5.3.2:

------------------------------------------------------------------------
[2010-07-28 12:05:54] info at mirgorod dot ru

Description:
------------
Several launches of 1911 affects the operation of division in php
5.3.2:

error_reporting(E_ALL); 

$now  = new Datetime();

for ($i = 0; $i < 4; $i++) 
{ 
    $a = $now->diff($now); 
} 

$t = 100/5.5; 

var_dump($t);

// first running: float(18.181818181818)
// after update page: Warning:  Division by zero in G:\www\test.php on
line 10
bool(false)
?>




------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52469&edit=1


Thread (8 messages)

« previous php.bugs (#152874) next »