Bug #52469 [Com]: Datetime affect the division
| From: | anka17pinky at yahoo dot com | Date: | Sun, 05 May 2013 14:20:15 +0000 |
| Subject: | Bug #52469 [Com]: Datetime affect the division | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-178802@lists.php.net to get a copy of this message | ||
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] degeberg@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