php 5.3.2 is affected by a bug in the DateTime object
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
there is a bug in ubuntu 10.04 (both 32 and 64 bits) php5-common package.
the following code shows the problem:
<?php
$nstartDate = new DateTime();
$nendDate = new DateTime();
print("<br/>0:" . $nstartDate-
$nstartDate-
print("<br/>1:" . $nstartDate-
$nstartDate-
print("<br/>2:" . $nstartDate-
$nstartDate-
print("<br/>3:" . $nstartDate-
?>
as you will see, each time getTimestamp() is called the date is subtracted by one month (instead of just once) no other distro seems to be affectd nor php 5.3.3.
Please update it as soon as possible. This is a serious bug in php code.
Thanks for reporting this issue.
Setting importance to Medium as this could potentially cause a serious issue. For this issue to progress, a minimal patch needs to be identified that resolves this issue.
Thanks.