From a0220e8b353fada21ac44fbcc9270c8e8419b4d8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 3 Aug 2014 09:19:30 +0200 Subject: php-pecl-http: 2.1.0RC1 for remi-test --- REFLECTION | 8 +++++--- pecl_http-git.patch | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ php-pecl-http.spec | 43 ++++++++++++++++++++++++++++++++++++++----- 3 files changed, 93 insertions(+), 8 deletions(-) create mode 100644 pecl_http-git.patch diff --git a/REFLECTION b/REFLECTION index 1b9ff70..dccb741 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #164 http version 2.0.7 ] { +Extension [ extension #165 http version 2.1.0RC1 ] { - Dependencies { Dependency [ raphf (Required) ] @@ -3533,15 +3533,17 @@ Extension [ extension #164 http version 2.0.7 ] { Class [ class http\Params implements ArrayAccess ] { - - Constants [9] { + - Constants [11] { Constant [ string DEF_PARAM_SEP ] { , } Constant [ string DEF_ARG_SEP ] { ; } Constant [ string DEF_VAL_SEP ] { = } Constant [ string COOKIE_PARAM_SEP ] { } Constant [ integer PARSE_RAW ] { 0 } - Constant [ integer PARSE_DEFAULT ] { 1 } + Constant [ integer PARSE_ESCAPED ] { 1 } Constant [ integer PARSE_URLENCODED ] { 4 } Constant [ integer PARSE_DIMENSION ] { 8 } + Constant [ integer PARSE_RFC5987 ] { 16 } + Constant [ integer PARSE_DEFAULT ] { 17 } Constant [ integer PARSE_QUERY ] { 12 } } diff --git a/pecl_http-git.patch b/pecl_http-git.patch new file mode 100644 index 0000000..9decea5 --- /dev/null +++ b/pecl_http-git.patch @@ -0,0 +1,50 @@ +From b08a238775e998bb07b530c3cd80219e100c95cf Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Sat, 2 Aug 2014 17:50:00 +0200 +Subject: [PATCH] set always_populate_raw_post_data=-1 to avoid failed test + (because of warning) + +--- + tests/message002.phpt | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/message002.phpt b/tests/message002.phpt +index f782f8f..403fb26 100644 +--- a/tests/message002.phpt ++++ b/tests/message002.phpt +@@ -9,6 +9,8 @@ b=c + HTTP_X_TEST=test + --COOKIE-- + foo=bar ++--INI-- ++always_populate_raw_post_data=-1 + --FILE-- + +Date: Sat, 2 Aug 2014 17:50:41 +0200 +Subject: [PATCH] slip online test + +--- + tests/client010.phpt | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tests/client010.phpt b/tests/client010.phpt +index 803403f..055d585 100644 +--- a/tests/client010.phpt ++++ b/tests/client010.phpt +@@ -3,6 +3,7 @@ client upload + --SKIPIF-- + + --FILE-- + = 5.3.0 BuildRequires: %{?scl_prefix}php-hash @@ -165,6 +170,8 @@ These are the files needed to compile programs using HTTP extension. mv %{proj_name}-%{version}%{?prever} NTS cd NTS +%patch0 -p1 -b .git + extver=$(sed -n '/#define PHP_PECL_HTTP_VERSION/{s/.* "//;s/".*$//;p}' php_http.h) if test "x${extver}" != "x%{version}%{?prever}"; then : Error: Upstream HTTP version is now ${extver}, expecting %{version}%{?prever}. @@ -235,22 +242,44 @@ done modules="" for mod in json hash iconv propro raphf; do if [ -f %{php_extdir}/${mod}.so ]; then - modules="$modules --define extension=${mod}.so" + modules="$modules -d extension=${mod}.so" fi done : Minimal load test for NTS extension %{__php} --no-php-ini \ $modules \ - --define extension=$PWD/NTS/modules/%{pecl_name}.so \ + --define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \ --modules | grep %{pecl_name} +%if %{with_tests} +: Upstream test suite NTS extension +cd NTS +SKIP_ONLINE_TESTS=1 \ +TEST_PHP_EXECUTABLE=%{__php} \ +TEST_PHP_ARGS="-n $modules -d extension=$PWD/modules/%{pecl_name}.so" \ +NO_INTERACTION=1 \ +REPORT_EXIT_STATUS=1 \ +%{__php} -n run-tests.php --show-diff +%endif + %if %{with_zts} : Minimal load test for ZTS extension %{__ztsphp} --no-php-ini \ $modules \ - --define extension=$PWD/ZTS/modules/%{pecl_name}.so \ + --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ --modules | grep %{pecl_name} + +%if %{with_tests} +: Upstream test suite ZTS extension +cd ../ZTS +SKIP_ONLINE_TESTS=1 \ +TEST_PHP_EXECUTABLE=%{__ztsphp} \ +TEST_PHP_ARGS="-n $modules -d extension=$PWD/modules/%{pecl_name}.so" \ +NO_INTERACTION=1 \ +REPORT_EXIT_STATUS=0 \ +%{__ztsphp} -n run-tests.php --show-diff +%endif %endif @@ -291,6 +320,10 @@ rm -rf %{buildroot} %changelog +* Sat Aug 02 2014 Remi Collet - 2.1.0-0.1.RC1 +- Update to 2.1.0RC1 +- run test suite during build + * Fri Jul 11 2014 Remi Collet - 2.0.7-1 - Update to 2.0.7 -- cgit