From aee4908d89e40f545faec619e5af45678f79366d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 12 Apr 2013 09:21:43 +0200 Subject: php-bartlett-PHP-CompatInfo: 2.15.0 --- 0028-fix-reference-for-datetimeinterface.patch | 49 ++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 0028-fix-reference-for-datetimeinterface.patch (limited to '0028-fix-reference-for-datetimeinterface.patch') 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 +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 + -- cgit