Edit report at http://bugs.php.net/bug.php?id=52469&edit=1
ID: 52469 User updated by: info at mirgorod dot ru Reported by: info at mirgorod dot ru Summary: Datetime affect the division Status: Open Type: Bug Package: Date/time related PHP Version: Irrelevant Block user comment: N New Comment: Sorry, this true description: Several launches of diff affects the operation of division in php 5.3.2: Previous Comments: ------------------------------------------------------------------------ [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