summaryrefslogtreecommitdiffstats
path: root/0028-fix-reference-for-datetimeinterface.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-04-12 09:21:43 +0200
committerRemi Collet <fedora@famillecollet.com>2013-04-12 09:21:43 +0200
commitaee4908d89e40f545faec619e5af45678f79366d (patch)
tree3ae7fdf7693273a70c1702f45b3c190654d1d60d /0028-fix-reference-for-datetimeinterface.patch
parent9273bd4970897741281807aaca8e47ecd962d035 (diff)
php-bartlett-PHP-CompatInfo: 2.15.0
Diffstat (limited to '0028-fix-reference-for-datetimeinterface.patch')
-rw-r--r--0028-fix-reference-for-datetimeinterface.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/0028-fix-reference-for-datetimeinterface.patch b/0028-fix-reference-for-datetimeinterface.patch
new file mode 100644
index 0000000..5d4ec07
--- /dev/null
+++ b/0028-fix-reference-for-datetimeinterface.patch
@@ -0,0 +1,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
+