summaryrefslogtreecommitdiffstats
path: root/0001-support-8.2.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-06-28 16:13:19 +0200
committerRemi Collet <remi@php.net>2022-06-28 16:13:19 +0200
commit6afca10881457ba6b856cf964cb49c1c35c65128 (patch)
tree14c6c7499fc92454237f00b48c785f9c55668388 /0001-support-8.2.patch
parentea08661243802488eca21f45afdee164298069f7 (diff)
update to 1.21.0
Diffstat (limited to '0001-support-8.2.patch')
-rw-r--r--0001-support-8.2.patch120
1 files changed, 0 insertions, 120 deletions
diff --git a/0001-support-8.2.patch b/0001-support-8.2.patch
deleted file mode 100644
index dd3f061..0000000
--- a/0001-support-8.2.patch
+++ /dev/null
@@ -1,120 +0,0 @@
-From 7afdbe2fc07b0e862b6e79190f9ff7f1ff3f61f9 Mon Sep 17 00:00:00 2001
-From: Remi Collet <remi@remirepo.net>
-Date: Wed, 11 May 2022 14:02:38 +0200
-Subject: [PATCH] support 8.2
-
----
- config.m4 | 4 ++--
- config.w32 | 2 ++
- php81/php_zip.c | 4 ++++
- tests/bug53603.phpt | 1 +
- tests/bug53885_php8.phpt | 2 +-
- tests/bug70752.phpt | 2 +-
- tests/oo_getstatusstring.phpt | 4 ++--
- 7 files changed, 13 insertions(+), 6 deletions(-)
-
-diff --git a/config.m4 b/config.m4
-index 3737db2..390108b 100644
---- a/config.m4
-+++ b/config.m4
-@@ -27,8 +27,8 @@ if test "$PHP_ZIP" != "no"; then
- elif test $PHP_VERSION -lt 80100; then
- AC_MSG_RESULT(8.0)
- subdir=php8
-- elif test $PHP_VERSION -lt 80200; then
-- AC_MSG_RESULT(8.1)
-+ elif test $PHP_VERSION -lt 80300; then
-+ AC_MSG_RESULT(8.1/8.2)
- subdir=php81
- else
- AC_MSG_ERROR(PHP version $PHP_VERSION is not supported yet)
-diff --git a/config.w32 b/config.w32
-index 2d45fb6..1d1c3e0 100644
---- a/config.w32
-+++ b/config.w32
-@@ -30,6 +30,8 @@ if (PHP_ZIP != "no") {
- configure_module_dirname = configure_module_dirname + "\\php8";
- } else if (PHP_VERSION == 8 && PHP_MINOR_VERSION == 1) {
- configure_module_dirname = configure_module_dirname + "\\php81";
-+ } else if (PHP_VERSION == 8 && PHP_MINOR_VERSION == 2) {
-+ configure_module_dirname = configure_module_dirname + "\\php81";
- } else {
- ERROR("PHP " + PHP_VERSION + "." + PHP_MINOR_VERSION + " not supported");
- }
-diff --git a/php81/php_zip.c b/php81/php_zip.c
-index ca040b5..9be5a9b 100644
---- a/php81/php_zip.c
-+++ b/php81/php_zip.c
-@@ -993,7 +993,11 @@ static HashTable *php_zip_get_properties(zend_object *object)/* {{{ */
- return NULL;
- }
-
-+#if PHP_VERSION_ID < 80200
- ZEND_HASH_FOREACH_STR_KEY_PTR(obj->prop_handler, key, hnd) {
-+#else
-+ ZEND_HASH_MAP_FOREACH_STR_KEY_PTR(obj->prop_handler, key, hnd) {
-+#endif
- zval *ret, val;
- ret = php_zip_property_reader(obj, hnd, &val);
- if (ret == NULL) {
-diff --git a/tests/bug53603.phpt b/tests/bug53603.phpt
-index b1058b0..76b8ad9 100644
---- a/tests/bug53603.phpt
-+++ b/tests/bug53603.phpt
-@@ -8,6 +8,7 @@ if(!extension_loaded('zip')) die('skip');
- <?php
-
- class TestStream {
-+ public $context;
- function url_stat($path, $flags) {
- if (!($flags & STREAM_URL_STAT_QUIET))
- trigger_error("not quiet");
-diff --git a/tests/bug53885_php8.phpt b/tests/bug53885_php8.phpt
-index 19fb350..f976d9a 100644
---- a/tests/bug53885_php8.phpt
-+++ b/tests/bug53885_php8.phpt
-@@ -19,7 +19,7 @@ $nx->statName("a",ZIPARCHIVE::FL_UNCHANGED);
- --CLEAN--
- <?php
- $fname = __DIR__."/test53885.zip";
--unlink($fname);
-+@unlink($fname);
- ?>
- --EXPECTF--
- Deprecated: ZipArchive::open(): Using empty file as ZipArchive is deprecated in %s
-diff --git a/tests/bug70752.phpt b/tests/bug70752.phpt
-index f006fbe..46546b5 100644
---- a/tests/bug70752.phpt
-+++ b/tests/bug70752.phpt
-@@ -27,5 +27,5 @@ bool(false)
- --CLEAN--
- <?php
- $filename = __DIR__ . DIRECTORY_SEPARATOR . 'bug70752.txt';
--unlink($filename);
-+@unlink($filename);
- ?>
-diff --git a/tests/oo_getstatusstring.phpt b/tests/oo_getstatusstring.phpt
-index efd19e3..5860b64 100644
---- a/tests/oo_getstatusstring.phpt
-+++ b/tests/oo_getstatusstring.phpt
-@@ -8,7 +8,7 @@ Ole-Petter Wikene <olepw@redpill-linpro.com>
- --FILE--
- <?php
-
--$dirname = dirname(__FILE__) . '/';
-+$dirname = __DIR__ . '/';
- $arch = new ZipArchive;
- $arch->open($dirname.'foo.zip',ZIPARCHIVE::CREATE);
- var_dump($arch->getStatusString());
-@@ -20,7 +20,7 @@ $arch->close();
- ?>
- --CLEAN--
- <?php
--unlink($dirname.'foo.zip');
-+@unlink(__DIR__ . '/foo.zip');
- ?>
- --EXPECT--
- string(8) "No error"
---
-2.35.3
-