Edit report at https://bugs.php.net/bug.php?id=52469&edit=1
ID: 52469 Comment by: anka17pinky at yahoo dot com Reported by: info at mirgorod dot ru Summary: Datetime affect the division Status: No Feedback Type: Bug Package: Date/time related PHP Version: Irrelevant Block user comment: N Private report: N New Comment: I have the same issue with PHP 5.3.0. This makes the diff function unusable :( Previous Comments: ------------------------------------------------------------------------ [2013-02-18 00:34:23] php-bugs at lists dot php dot net 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 "Open". Thank you. ------------------------------------------------------------------------ [2011-03-11 13:04:51] arialdomartini at gmail dot com I'm able to reproduce this bug on Windows Vista, PHP 5.3.(2/4/5) ------------------------------------------------------------------------ [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 https://bugs.php.net/bug.php?id=52469&edit=1