summaryrefslogtreecommitdiffstats
path: root/0028-fix-reference-for-datetimeinterface.patch
blob: 5d4ec072076564c57cae8b8d5e8abd1e7880974e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
From c85563b06140afa310a8208a5695f9ad2d3a312b Mon Sep 17 00:00:00 2001
From: Remi Collet <fedora@famillecollet.com>
Date: Thu, 4 Apr 2013 11:13:05 +0200
Subject: [PATCH] fix data ref for php 5.5 (DateTimeInterface)

---
 PHP/CompatInfo/Reference/date.php | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/PHP/CompatInfo/Reference/date.php b/PHP/CompatInfo/Reference/date.php
index 1e84586..f141613 100644
--- a/PHP/CompatInfo/Reference/date.php
+++ b/PHP/CompatInfo/Reference/date.php
@@ -87,6 +87,32 @@ public function getClasses($extension = null, $version = null, $condition = null
     }
 
     /**
+     * Gets informations about interfaces
+     *
+     * @param string $extension (optional) NULL for PHP version,
+     *                          TRUE if extension version
+     * @param string $version   (optional) php or extension version
+     * @param string $condition (optional) particular relationship with $version
+     *                          Same operator values as used by version_compare
+     *
+     * @return array
+     */
+    public function getInterfaces($extension = null, $version = null, $condition = null)
+    {
+        $this->setFilter(func_get_args());
+
+        $interfaces = array();
+
+        $release = '5.5.0';       // not yet
+        $items = array(
+            'DateTimeInterface'              => array('5.5.0-dev', ''),
+        );
+        $this->applyFilter($release, $items, $interfaces);
+
+        return $interfaces;
+    }
+
+    /**
      * Gets informations about functions
      *
      * @param string $extension (optional) NULL for PHP version,
-- 
1.8.1.5