[php-bartlett-PHP-CompatInfo/f18] update to 2.20.0
Remi Collet
remi at fedoraproject.org
Thu Jul 25 06:35:37 UTC 2013
commit 0b9608b109141bd38838f073f8cfc7545639aaa0
Author: Remi Collet <remi at fedoraproject.org>
Date: Thu Jul 25 08:35:25 2013 +0200
update to 2.20.0
.gitignore | 1 +
PHP_CompatInfo-git.patch | 131 ++++++++++++++++++++++++++++++++++++++
PHP_CompatInfo-intl.patch | 83 ------------------------
php-bartlett-PHP-CompatInfo.spec | 18 +++--
sources | 2 +-
5 files changed, 144 insertions(+), 91 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 39f0762..84edd7f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -25,3 +25,4 @@ package-*.xml
/PHP_CompatInfo-2.17.0.tgz
/PHP_CompatInfo-2.18.0.tgz
/PHP_CompatInfo-2.19.0.tgz
+/PHP_CompatInfo-2.20.0.tgz
diff --git a/PHP_CompatInfo-git.patch b/PHP_CompatInfo-git.patch
new file mode 100644
index 0000000..0e729b0
--- /dev/null
+++ b/PHP_CompatInfo-git.patch
@@ -0,0 +1,131 @@
+From 129dc0cf6c7173bd94a962437f265d37f6174ec1 Mon Sep 17 00:00:00 2001
+From: Remi Collet <fedora at famillecollet.com>
+Date: Thu, 25 Jul 2013 07:42:36 +0200
+Subject: [PATCH 1/3] fix mongo ref for new constant
+
+---
+ PHP/CompatInfo/Reference/mongo.php | 25 +++++++++++++++++++++++++
+ 1 file changed, 25 insertions(+)
+
+diff --git a/PHP/CompatInfo/Reference/mongo.php b/PHP/CompatInfo/Reference/mongo.php
+index de7706a..aee9ec4 100644
+--- a/PHP/CompatInfo/Reference/mongo.php
++++ b/PHP/CompatInfo/Reference/mongo.php
+@@ -195,4 +195,29 @@ class PHP_CompatInfo_Reference_Mongo
+ return $functions;
+ }
+
++ /**
++ * Gets informations about constants
++ *
++ * @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 getConstants($extension = null, $version = null, $condition = null)
++ {
++ $this->setFilter(func_get_args());
++
++ $constants = array();
++
++ $release = '1.4.2'; // 2013-07-23
++ $items = array(
++ 'MONGO_STREAMS' => array('5.2.6', ''),
++ );
++ $this->applyFilter($release, $items, $constants);
++
++ return $constants;
++ }
+ }
+--
+1.8.3.1
+
+From 5ba5dcb04f63956c53bca33d080135a5d4a7364e Mon Sep 17 00:00:00 2001
+From: Remi Collet <fedora at famillecollet.com>
+Date: Thu, 25 Jul 2013 07:43:24 +0200
+Subject: [PATCH 2/3] fix sockets reference
+
+---
+ PHP/CompatInfo/Reference/sockets.php | 1 +
+ tests/Reference/SocketsTest.php | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/PHP/CompatInfo/Reference/sockets.php b/PHP/CompatInfo/Reference/sockets.php
+index a5ecb12..563bde6 100644
+--- a/PHP/CompatInfo/Reference/sockets.php
++++ b/PHP/CompatInfo/Reference/sockets.php
+@@ -302,6 +302,7 @@ class PHP_CompatInfo_Reference_Sockets
+ 'SOL_TCP' => array('4.1.0', ''),
+ 'SOL_UDP' => array('4.1.0', ''),
+ 'SOMAXCONN' => array('4.1.0', ''),
++ 'SO_BINDTODEVICE' => array('5.5.1', ''),
+ 'SO_BROADCAST' => array('4.1.0', ''),
+ 'SO_DEBUG' => array('4.1.0', ''),
+ 'SO_DONTROUTE' => array('4.1.0', ''),
+diff --git a/tests/Reference/SocketsTest.php b/tests/Reference/SocketsTest.php
+index 4175416..e607741 100644
+--- a/tests/Reference/SocketsTest.php
++++ b/tests/Reference/SocketsTest.php
+@@ -188,6 +188,7 @@ class PHP_CompatInfo_Reference_SocketsTest
+ 'MSG_MORE',
+ 'MSG_WAITFORONE',
+ 'MSG_CMSG_CLOEXEC',
++ 'SO_BINDTODEVICE',
+ 'SO_REUSEPORT',
+ 'SO_FAMILY',
+ 'TCP_NODELAY',
+--
+1.8.3.1
+
+From 8fee07282ac7b9e15bea71207235a68120b5d15d Mon Sep 17 00:00:00 2001
+From: Remi Collet <fedora at famillecollet.com>
+Date: Thu, 25 Jul 2013 07:44:01 +0200
+Subject: [PATCH 3/3] fix standard: chroot is optionnal
+
+---
+ PHP/CompatInfo/Reference/standard.php | 2 +-
+ tests/Reference/StandardTest.php | 4 +++-
+ 2 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/PHP/CompatInfo/Reference/standard.php b/PHP/CompatInfo/Reference/standard.php
+index 15dd325..152ddb9 100644
+--- a/PHP/CompatInfo/Reference/standard.php
++++ b/PHP/CompatInfo/Reference/standard.php
+@@ -492,7 +492,7 @@ class PHP_CompatInfo_Reference_Standard
+ 'array_reduce' => array('4.0.5', ''),
+ 'array_search' => array('4.0.5', ''),
+ 'call_user_method_array' => array('4.0.5', ''),
+- 'chroot' => array('4.0.5', self::LATEST_PHP_5_3),
++ 'chroot' => array('4.0.5', ''),
+ 'is_scalar' => array('4.0.5', ''),
+ 'strcoll' => array('4.0.5', ''),
+ );
+diff --git a/tests/Reference/StandardTest.php b/tests/Reference/StandardTest.php
+index fa8201f..44749fd 100644
+--- a/tests/Reference/StandardTest.php
++++ b/tests/Reference/StandardTest.php
+@@ -55,6 +55,8 @@ class PHP_CompatInfo_Reference_StandardTest
+
+ if (DIRECTORY_SEPARATOR == '/') {
+ $this->optionalfunctions = array(
++ // requires HAVE_CHROOT
++ 'chroot',
+ // remove in some Linux distribution (Redhat, ...)
+ 'php_egg_logo_guid',
+ );
+@@ -68,7 +70,7 @@ class PHP_CompatInfo_Reference_StandardTest
+ 'money_format',
+ // requires HAVE_GETRUSAGE (linux only)
+ 'getrusage',
+- // requires HAVE_CHROOT (linux only)
++ // requires HAVE_CHROOT
+ 'chroot',
+ // requires HAVE_FTOK (linux only)
+ 'ftok',
+--
+1.8.3.1
+
diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec
index d241676..0341e45 100644
--- a/php-bartlett-PHP-CompatInfo.spec
+++ b/php-bartlett-PHP-CompatInfo.spec
@@ -16,7 +16,7 @@
Name: php-bartlett-PHP-CompatInfo
-Version: 2.19.0
+Version: 2.20.0
Release: 1%{?dist}
Summary: Find out version and the extensions required for a piece of code to run
@@ -33,8 +33,8 @@ Source1: https://raw.github.com/llaville/php-compat-info/master/misc/phpc
# Add .install .module to fileExtensions (for drupal)
Patch0: %{pear_name}-conf.patch
-# https://github.com/llaville/php-compat-info/pull/95
-Patch1: %{pear_name}-intl.patch
+# https://github.com/llaville/php-compat-info/pull/98
+Patch1: %{pear_name}-git.patch
BuildArch: noarch
BuildRequires: php(language) >= 5.2.1
@@ -88,8 +88,7 @@ cp phpcompatinfo.xml.dist phpcompatinfo.xml
%patch1 -p1 -b .ref
# remove checksum for patched files
-sed -e '/intl.php/s/md5sum.*name/name/' \
- -e '/IntlTest.php/s/md5sum.*name/name/' \
+sed -e 's/md5sum.*name/name/' \
../package.xml >%{name}.xml
@@ -131,8 +130,8 @@ rm -f tests/Reference/XslTest.php
%endif
# OK, but incomplete or skipped tests!
-# Tests: 816, Assertions: 11365, Skipped: 72, when most extensions installed
-# Tests: 550, Assertions: 6834, Skipped: 378, in mock
+# Tests: 809, Assertions: 10993, Skipped: 80, when most extensions installed
+# Tests: 550, Assertions: 6830, Skipped: 378, in mock
# Reference tests need some fixes for EL-5, so ignore result for now
%{_bindir}/phpunit \
-d date.timezone=UTC \
@@ -173,10 +172,15 @@ fi
%changelog
+* Thu Jul 25 2013 Remi Collet <remi at fedoraproject.org> - 2.20.0-1
+- Update to 2.20.0
+- patch from https://github.com/llaville/php-compat-info/pull/98
+
* Fri Jul 12 2013 Remi Collet <remi at fedoraproject.org> - 2.19.0-1
- Update to 2.19.0
- add module and install to fileExtensions in default configuration
for drupal packages, #979830
+- patch from https://github.com/llaville/php-compat-info/pull/95
- raise dependencies, PHP_Reflect 1.7.0
* Fri Jun 07 2013 Remi Collet <remi at fedoraproject.org> - 2.17.0-2
diff --git a/sources b/sources
index b766037..f730690 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9a4150faf2f4ee236cba6e82b4bbd77c PHP_CompatInfo-2.19.0.tgz
+e675bfe8fb6cb5baafe316cc0e893cda PHP_CompatInfo-2.20.0.tgz
More information about the scm-commits
mailing list