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

 ID:                 52469
 Comment by:         arialdomartini at gmail dot com
 Reported by:        info at mirgorod dot ru
 Summary:            Datetime affect the division
 Status:             Feedback
 Type:               Bug
 Package:            Date/time related
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

I'm able to reproduce this bug on



Windows Vista, PHP 5.3.(2/4/5)


Previous Comments:
------------------------------------------------------------------------
[2010-07-28 12:13:39] degeb...@php.net

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.

------------------------------------------------------------------------
[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

Reply via email to