summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-bartlett-php-compatinfo-db-upstream.patch322
1 files changed, 322 insertions, 0 deletions
diff --git a/php-bartlett-php-compatinfo-db-upstream.patch b/php-bartlett-php-compatinfo-db-upstream.patch
index 7cd6873..2f50e8d 100644
--- a/php-bartlett-php-compatinfo-db-upstream.patch
+++ b/php-bartlett-php-compatinfo-db-upstream.patch
@@ -304,3 +304,325 @@ index 0aa2507..96ed79e 100644
-]
\ No newline at end of file
+]
+From 3c9ecc1a0f262fb010f698a6404b72fa779a4b9a Mon Sep 17 00:00:00 2001
+From: Laurent Laville <laurent.laville@gmail.com>
+Date: Sat, 16 Jan 2021 09:39:15 +0000
+Subject: [PATCH] fixe class constants missing to solve issue #63
+
+---
+ data/reference/extension/http/2/const.json | 24 ++++++++++++++++++++++
+ 1 file changed, 24 insertions(+)
+
+diff --git a/data/reference/extension/http/2/const.json b/data/reference/extension/http/2/const.json
+index c496afd..0e96bdd 100644
+--- a/data/reference/extension/http/2/const.json
++++ b/data/reference/extension/http/2/const.json
+@@ -262,5 +262,29 @@
+ "ext_max": "",
+ "php_min": "5.3.0",
+ "php_max": ""
++ },
++ {
++ "class_name": "http\\Cookie",
++ "name": "PARSE_RAW",
++ "ext_min": "2.0.0",
++ "ext_max": "",
++ "php_min": "5.3.0",
++ "php_max": ""
++ },
++ {
++ "class_name": "http\\Cookie",
++ "name": "SECURE",
++ "ext_min": "2.0.0",
++ "ext_max": "",
++ "php_min": "5.3.0",
++ "php_max": ""
++ },
++ {
++ "class_name": "http\\Cookie",
++ "name": "HTTPONLY",
++ "ext_min": "2.0.0",
++ "ext_max": "",
++ "php_min": "5.3.0",
++ "php_max": ""
+ }
+ ]
+From 46ad813dd87effe6ecc08a0639fe49e553aabd5d Mon Sep 17 00:00:00 2001
+From: Laurent Laville <laurent.laville@gmail.com>
+Date: Sat, 16 Jan 2021 18:21:51 +0000
+Subject: [PATCH] fixes xmlrpc reference issue (#64)
+
+---
+ CHANGELOG-3.x.md | 1 +
+ README.md | 1 +
+ .../reference/extension/xmlrpc/1/classes.json | 9 ++
+ .../extension/xmlrpc/1/functions.json | 128 ++++++++++++++++++
+ .../extension/xmlrpc/1/releases.json | 18 +++
+ .../extension/xmlrpc/43/releases.json | 2 +-
+ src/Application/Query/Init/InitHandler.php | 11 +-
+ 7 files changed, 167 insertions(+), 3 deletions(-)
+ create mode 100644 data/reference/extension/xmlrpc/1/classes.json
+ create mode 100644 data/reference/extension/xmlrpc/1/functions.json
+ create mode 100644 data/reference/extension/xmlrpc/1/releases.json
+
+diff --git a/data/reference/extension/xmlrpc/1/classes.json b/data/reference/extension/xmlrpc/1/classes.json
+new file mode 100644
+index 0000000..0b0cb64
+--- /dev/null
++++ b/data/reference/extension/xmlrpc/1/classes.json
+@@ -0,0 +1,9 @@
++[
++ {
++ "name": "XmlRpcServer",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": ""
++ }
++]
+diff --git a/data/reference/extension/xmlrpc/1/functions.json b/data/reference/extension/xmlrpc/1/functions.json
+new file mode 100644
+index 0000000..09d5846
+--- /dev/null
++++ b/data/reference/extension/xmlrpc/1/functions.json
+@@ -0,0 +1,128 @@
++[
++ {
++ "name": "xmlrpc_encode",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": "",
++ "parameters": "",
++ "php_excludes": ""
++ },
++ {
++ "name": "xmlrpc_decode",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": "",
++ "parameters": "",
++ "php_excludes": ""
++ },
++ {
++ "name": "xmlrpc_decode_request",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": "",
++ "parameters": "",
++ "php_excludes": ""
++ },
++ {
++ "name": "xmlrpc_encode_request",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": "",
++ "parameters": "",
++ "php_excludes": ""
++ },
++ {
++ "name": "xmlrpc_get_type",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": "",
++ "parameters": "",
++ "php_excludes": ""
++ },
++ {
++ "name": "xmlrpc_set_type",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": "",
++ "parameters": "",
++ "php_excludes": ""
++ },
++ {
++ "name": "xmlrpc_is_fault",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": "",
++ "parameters": "",
++ "php_excludes": ""
++ },
++ {
++ "name": "xmlrpc_server_create",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": "",
++ "parameters": "",
++ "php_excludes": ""
++ },
++ {
++ "name": "xmlrpc_server_destroy",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": "",
++ "parameters": "",
++ "php_excludes": ""
++ },
++ {
++ "name": "xmlrpc_server_register_method",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": "",
++ "parameters": "",
++ "php_excludes": ""
++ },
++ {
++ "name": "xmlrpc_server_call_method",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": "",
++ "parameters": "",
++ "php_excludes": ""
++ },
++ {
++ "name": "xmlrpc_parse_method_descriptions",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": "",
++ "parameters": "",
++ "php_excludes": ""
++ },
++ {
++ "name": "xmlrpc_server_add_introspection_data",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": "",
++ "parameters": "",
++ "php_excludes": ""
++ },
++ {
++ "name": "xmlrpc_server_register_introspection_callback",
++ "ext_min": "1.0.0RC1",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": "",
++ "parameters": "",
++ "php_excludes": ""
++ }
++]
+diff --git a/data/reference/extension/xmlrpc/1/releases.json b/data/reference/extension/xmlrpc/1/releases.json
+new file mode 100644
+index 0000000..432d15a
+--- /dev/null
++++ b/data/reference/extension/xmlrpc/1/releases.json
+@@ -0,0 +1,18 @@
++[
++ {
++ "rel_version": "1.0.0RC1",
++ "rel_date": "2021-01-04",
++ "rel_state": "beta",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": ""
++ },
++ {
++ "rel_version": "1.0.0RC2",
++ "rel_date": "2021-01-15",
++ "rel_state": "beta",
++ "ext_max": "",
++ "php_min": "8.0.0",
++ "php_max": ""
++ }
++]
+diff --git a/data/reference/extension/xmlrpc/43/releases.json b/data/reference/extension/xmlrpc/43/releases.json
+index 0613962..db1c4b6 100644
+--- a/data/reference/extension/xmlrpc/43/releases.json
++++ b/data/reference/extension/xmlrpc/43/releases.json
+@@ -5,6 +5,6 @@
+ "rel_state": "stable",
+ "ext_max": "",
+ "php_min": "4.3.0",
+- "php_max": ""
++ "php_max": "7.4.14"
+ }
+ ]
+diff --git a/src/Application/Query/Init/InitHandler.php b/src/Application/Query/Init/InitHandler.php
+index 53a92fa..95f69a6 100644
+--- a/src/Application/Query/Init/InitHandler.php
++++ b/src/Application/Query/Init/InitHandler.php
+@@ -1240,8 +1240,15 @@ private function majorReleaseDefinitionProvider(): Generator
+ ];
+
+ yield 'xmlrpc' => [
+- 'functions' => ['41'],
+- 'releases' => ['41', '43'],
++ 'classes' => ['1'],
++ 'functions' => [
++ '41', // when bundled with PHP < 8
++ '1', // as pecl extension for PHP 8
++ ],
++ 'releases' => [
++ '41', '43', // when bundled with PHP < 8
++ '1' // as pecl extension for PHP 8
++ ],
+ ];
+
+ yield 'xmlwriter' => [
+From 26d04a01cedc0238b28a238ebb54364474313b09 Mon Sep 17 00:00:00 2001
+From: Laurent Laville <laurent.laville@gmail.com>
+Date: Sun, 17 Jan 2021 07:00:27 +0000
+Subject: [PATCH] keep compatibility between xmlrpc extension php bundled and
+ unbundled (pecl)
+
+---
+ src/Application/Query/Init/InitHandler.php | 26 +++++++++++++---------
+ 1 file changed, 15 insertions(+), 11 deletions(-)
+
+diff --git a/src/Application/Query/Init/InitHandler.php b/src/Application/Query/Init/InitHandler.php
+index 95f69a6..63f0f2d 100644
+--- a/src/Application/Query/Init/InitHandler.php
++++ b/src/Application/Query/Init/InitHandler.php
+@@ -33,6 +33,7 @@
+ use function implode;
+ use function json_last_error;
+ use function sprintf;
++use function version_compare;
+ use const DIRECTORY_SEPARATOR;
+ use const JSON_ERROR_NONE;
+
+@@ -1239,17 +1240,20 @@ private function majorReleaseDefinitionProvider(): Generator
+ ),
+ ];
+
+- yield 'xmlrpc' => [
+- 'classes' => ['1'],
+- 'functions' => [
+- '41', // when bundled with PHP < 8
+- '1', // as pecl extension for PHP 8
+- ],
+- 'releases' => [
+- '41', '43', // when bundled with PHP < 8
+- '1' // as pecl extension for PHP 8
+- ],
+- ];
++ if (version_compare(PHP_VERSION, '8.0.0', 'lt')) {
++ // when bundled with PHP < 8
++ yield 'xmlrpc' => [
++ 'functions' => ['41'],
++ 'releases' => ['41', '43'],
++ ];
++ } else {
++ // as pecl extension for PHP 8
++ yield 'xmlrpc' => [
++ 'classes' => ['1'],
++ 'functions' => ['1'],
++ 'releases' => ['1'],
++ ];
++ }
+
+ yield 'xmlwriter' => [
+ 'classes' => ['51'],