add upstream patches for test suite
This commit is contained in:
parent
9ccd2fab27
commit
a03d1bbbee
25
192c7f0edcff63024426955f0796332499671fb7.patch
Normal file
25
192c7f0edcff63024426955f0796332499671fb7.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 192c7f0edcff63024426955f0796332499671fb7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Nikita Popov <nikita.ppv@gmail.com>
|
||||||
|
Date: Wed, 2 Oct 2019 11:02:10 +0200
|
||||||
|
Subject: [PATCH] Use different fatal error in test
|
||||||
|
|
||||||
|
This is no longer a fatal error in 7.4...
|
||||||
|
---
|
||||||
|
tests/apc_entry_003.phpt | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/apc_entry_003.phpt b/tests/apc_entry_003.phpt
|
||||||
|
index 0fd7be4..f066583 100644
|
||||||
|
--- a/tests/apc_entry_003.phpt
|
||||||
|
+++ b/tests/apc_entry_003.phpt
|
||||||
|
@@ -9,8 +9,8 @@ apc.enable_cli=1
|
||||||
|
<?php
|
||||||
|
$value = apcu_entry("test", function($key) {
|
||||||
|
// Fatal error
|
||||||
|
- class X implements Y {}
|
||||||
|
+ class X { use T; }
|
||||||
|
});
|
||||||
|
?>
|
||||||
|
--EXPECTF--
|
||||||
|
-Fatal error: Interface 'Y' not found in %s on line %d
|
||||||
|
+Fatal error: Trait 'T' not found in %s on line %d
|
@ -24,6 +24,7 @@ Source2: %{pecl_name}-panel.conf
|
|||||||
Source3: %{pecl_name}.conf.php
|
Source3: %{pecl_name}.conf.php
|
||||||
|
|
||||||
Patch0: https://github.com/krakjoe/apcu/commit/50353e06d89a0bf0a77287f9d232f3a2edb60667.patch
|
Patch0: https://github.com/krakjoe/apcu/commit/50353e06d89a0bf0a77287f9d232f3a2edb60667.patch
|
||||||
|
Patch1: https://github.com/krakjoe/apcu/commit/192c7f0edcff63024426955f0796332499671fb7.patch
|
||||||
|
|
||||||
License: PHP
|
License: PHP
|
||||||
URL: http://pecl.php.net/package/APCu
|
URL: http://pecl.php.net/package/APCu
|
||||||
@ -87,6 +88,7 @@ sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml
|
|||||||
|
|
||||||
cd NTS
|
cd NTS
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
# Sanity check, really often broken
|
# Sanity check, really often broken
|
||||||
extver=$(sed -n '/#define PHP_APCU_VERSION/{s/.* "//;s/".*$//;p}' php_apc.h)
|
extver=$(sed -n '/#define PHP_APCU_VERSION/{s/.* "//;s/".*$//;p}' php_apc.h)
|
||||||
@ -221,6 +223,7 @@ REPORT_EXIT_STATUS=1 \
|
|||||||
%changelog
|
%changelog
|
||||||
* Thu Oct 03 2019 Remi Collet <remi@remirepo.net> - 5.1.17-3
|
* Thu Oct 03 2019 Remi Collet <remi@remirepo.net> - 5.1.17-3
|
||||||
- rebuild for https://fedoraproject.org/wiki/Changes/php74
|
- rebuild for https://fedoraproject.org/wiki/Changes/php74
|
||||||
|
- add upstream patches for test suite
|
||||||
|
|
||||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.17-2
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.17-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user