Skip to content

Commit

Permalink
[mms] Fix regression in handling invalid DateTime data due to a BC-in…
Browse files Browse the repository at this point in the history
…compatible change in PHP.
  • Loading branch information
slusarz committed Jul 1, 2014
1 parent e8002ba commit 65f6cf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion framework/Imap_Client/lib/Horde/Imap/Client/DateTime.php
Expand Up @@ -29,7 +29,8 @@ class Horde_Imap_Client_DateTime extends DateTime
public function __construct($time = null, $tz = null)
{
/* See https://bugs.php.net/bug.php?id=67118 */
$bug_67118 = in_array(PHP_VERSION, array('5.4.29', '5.5.13'));
$bug_67118 = (PHP_MINOR_VERSION >= 6) ||
in_array(PHP_VERSION, array('5.4.29', '5.5.13'));
$tz = new DateTimeZone('UTC');

try {
Expand Down
4 changes: 2 additions & 2 deletions framework/Imap_Client/package.xml
Expand Up @@ -21,7 +21,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Fix regression in handling invalid DateTime data due to a BC-incompatible change in PHP.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -2495,7 +2495,7 @@
<date>2014-06-17</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [mms] Fix regression in handling invalid DateTime data due to a BC-incompatible change in PHP.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 65f6cf6

Please sign in to comment.