Skip to content

Commit 0c3824c

Browse files
authored
Merge pull request #110 from mambax7/feature/2512
Update for XOOPS 2.5.12
2 parents 4b3222d + 89d112f commit 0c3824c

File tree

4 files changed

+203
-19
lines changed

4 files changed

+203
-19
lines changed

.github/workflows/pr_tests.yml

+29-9
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: CI
33
on: [push, pull_request]
44

55
jobs:
6-
phpunit-7-1:
6+
phpunit-9-6:
77
strategy:
88
fail-fast: false
99
matrix:
10-
php_version: ["7.1", "7.4"]
10+
php_version: ["7.4", "8.1", "8.2", "8.3"]
1111
runs-on: ubuntu-latest
1212

1313
steps:
@@ -20,25 +20,45 @@ jobs:
2020
with:
2121
php-version: ${{ matrix.php_version }}
2222
coverage: xdebug
23-
- name: Unit Tests with PHPUnit 7.1
24-
run: vendor/bin/phpunit --stderr --version 7.1
23+
- name: Unit Tests with PHPUnit 9.6
24+
run: vendor/bin/phpunit --stderr --version 9.6
25+
26+
phpunit-10-5:
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
php_version: ["8.1", "8.2", "8.3"]
31+
runs-on: ubuntu-latest
2532

26-
phpunit-9-6:
33+
steps:
34+
- uses: actions/checkout@v2
35+
- uses: php-actions/composer@v6
36+
with:
37+
php_version: "8.1"
38+
- name: Setup PHP
39+
uses: shivammathur/setup-php@v2
40+
with:
41+
php-version: ${{ matrix.php_version }}
42+
coverage: xdebug
43+
- name: Unit Tests with PHPUnit 10.5
44+
run: vendor/bin/phpunit --stderr --version 10.5
45+
46+
phpunit-11-2:
2747
strategy:
2848
fail-fast: false
2949
matrix:
30-
php_version: ["8.1"]
50+
php_version: ["8.2", "8.3"]
3151
runs-on: ubuntu-latest
3252

3353
steps:
3454
- uses: actions/checkout@v2
3555
- uses: php-actions/composer@v6
3656
with:
37-
php_version: "7.4"
57+
php_version: "8.2"
3858
- name: Setup PHP
3959
uses: shivammathur/setup-php@v2
4060
with:
4161
php-version: ${{ matrix.php_version }}
4262
coverage: xdebug
43-
- name: Unit Tests with PHPUnit 9.6
44-
run: vendor/bin/phpunit --stderr --version 9.6
63+
- name: Unit Tests with PHPUnit 11.2
64+
run: vendor/bin/phpunit --stderr --version 11.2

.travis.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
language: php
22

33
php:
4-
- 7.1
5-
- 7.2
4+
- 7.4
5+
- 8.1
6+
- 8.2
7+
- 8.3
68

79
matrix:
810
allow_failures:

composer.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
}
1010
},
1111
"require": {
12-
"php": ">=5.6.0",
13-
"kint-php/kint": "^3.3",
14-
"symfony/yaml": "^2.8",
15-
"paragonie/random_compat": "^2",
16-
"firebase/php-jwt": "6.0.0",
17-
"webmozart/assert": "1.9.1"
12+
"php": ">=7.4.0",
13+
"kint-php/kint": "^5.1.1",
14+
"symfony/yaml": "^5.4.39",
15+
"paragonie/random_compat": "^9.99.100",
16+
"firebase/php-jwt": "^6.10.0",
17+
"webmozart/assert": "^1.11.0"
1818
},
1919
"require-dev": {
20-
"phpunit/phpunit": "^7.0",
21-
"roave/security-advisories": "dev-master"
20+
"phpunit/phpunit": "^9.6",
21+
"roave/security-advisories": "dev-latest"
2222
},
2323
"autoload-dev": {
2424
"psr-4": {

docs/changelog.md

+162
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,168 @@
11
xmf ChangeLog
22
=============
33

4+
May 30, 2024 v1.2.30
5+
------------------
6+
* upgrade Smarty to 4.5.3
7+
8+
9+
Nov 20, 2023 v1.2.29
10+
------------------
11+
* add Random::generateSecureRandomBytes()
12+
* replace random_bytes() with generateSecureRandomBytes() for PHP 5.6
13+
14+
15+
Oct 30, 2023 v1.2.28
16+
------------------
17+
* Updates to library dependencies
18+
* PHP 8.0 Error Suppression operator issues
19+
* Handle case of no permissionHandler found
20+
* Adds ULID support
21+
* cosmetic and code improvements
22+
23+
Mar 19, 2023 v1.2.27
24+
------------------
25+
* Update to firebase/php-jwt 6.0.0
26+
27+
Apr 16, 2022 v1.2.26
28+
------------------
29+
* Add Xmf\Module\Helper\Permission::getItemIds($gperm_name, $gperm_groupid)
30+
* Use new module version in XoopsCore25
31+
* Fix issues in Xmf\Database\Tables and Xmf\Database\Migrate
32+
* Fix some issues related to new PHP versions
33+
34+
May 7, 2021 v1.2.25
35+
------------------
36+
* add \Xmf\Module\Admin::renderNavigation() method
37+
38+
Mar 25, 2021 v1.2.24
39+
------------------
40+
* Fixes for PHP 5.3 compatibility
41+
42+
Feb 15, 2021 v1.2.23
43+
------------------
44+
* Additional fix in Debug for Kint 3.3
45+
46+
Feb 13, 2021 v1.2.22
47+
------------------
48+
* fixes in Debug for Kint 3.3
49+
50+
Feb 13, 2021 v1.2.21
51+
------------------
52+
* Library updates
53+
* XOOPS standardization
54+
* Minor code cleanups
55+
56+
Aug 18, 2020 v1.2.20
57+
------------------
58+
* \Xmf\Module\Helper\AbstractHelper::serializeForHelperLog() fix logging of a resource type
59+
* Unit test updates for latest version of Webmozart\Assert
60+
61+
Feb 13, 2020 v1.2.19
62+
------------------
63+
* \Xmf\Yaml::read() eliminate PHP warning if specified file does not exist.
64+
65+
Dec 1, 2019 v1.2.18
66+
------------------
67+
* PHP 7.4 ready
68+
* fix error in Database\Table::loadTableFromYamlFile()
69+
* add Uuid::packAsBinary() and Uuid::unpackBinary() methods
70+
* add Module/Helper/GenericHelper::uploadPath() and uploadUrl() methods
71+
* add proxy support in IPAddress::fromRequest();
72+
73+
Mar 27, 2019 v1.2.17
74+
------------------
75+
- Docblock corrections
76+
77+
Nov 29, 2018 v1.2.16
78+
------------------
79+
- Fix database column quoting
80+
81+
Oct 1, 2018 v1.2.15
82+
------------------
83+
- Fix database column quoting for prefix indexes
84+
- Add dirname() method to helper classes
85+
- Changes Request::hasVar() default for $hash to 'default'
86+
87+
Mar 30, 2018 v1.2.14
88+
------------------
89+
- add serialization to non-scalar log data
90+
- improved handling of custom key storage
91+
- add some unit testing
92+
- add roave/security-advisories requirement to catch security issues at build time
93+
- Synchronization with XoopsCore
94+
95+
Nov 12, 2017 v1.2.12
96+
------------------
97+
- updates the supporting Kint library to version 2.2.
98+
99+
Nov 12, 2017 v1.2.11
100+
------------------
101+
- adds support for UUID generation using the Xmf\Uuid class.
102+
103+
Jul 24, 2017 v1.2.10
104+
------------------
105+
- fixes issues in Xmf\Random appearing under PHP 7.1. Xmf\Random will now avoid the mcrypt extension if at all possible, and use the native random_bytes() function in PHP 7+.
106+
107+
May 19, 2017 v1.2.9
108+
------------------
109+
- fixes issues in Xmf\Highlighter and Xmf\Metagen
110+
111+
May 7, 2017 v1.2.8
112+
------------------
113+
- add a missing option in \Xmf\Module\Helper\Permission::checkPermission()
114+
115+
Apr 29, 2017 v1.2.7
116+
------------------
117+
- fixes issue with Xmf\Metagen::generateSeoTitle
118+
119+
Apr 18, 2017 v1.2.6
120+
------------------
121+
- fixes issues with Xmf\Request::MASK_ALLOW_HTML
122+
123+
Apr 3, 2017 v1.2.5
124+
------------------
125+
- updates to kint-php/kint
126+
127+
Mar 6, 2017 v1.2.4
128+
------------------
129+
- adds Xmf\Assert
130+
131+
Mar 3, 2017 v1.2.3
132+
------------------
133+
- synchronizes some minor docblock changes
134+
135+
Feb 25, 2017 v1.2.2
136+
------------------
137+
- corrects issues with Yaml:readWrapped()
138+
139+
Nov 2, 2016 v1.2.0
140+
------------------
141+
- Separates the stop word logic from MetaGen into a new StopWords class
142+
- Deprecates MetaGen::checkStopWords()
143+
144+
Sep 11, 2016 v1.1.4
145+
------------------
146+
- #17 Handle non-ascii text in Metagen::generateKeywords()
147+
148+
Aug 13, 2016 v1.1.3
149+
------------------
150+
- Fix #15 XoopsRequest class not found in StripSlashesRecursive method
151+
152+
Aug 6, 2016 v1.1.2
153+
------------------
154+
- Fix #13 Can't check isUserAdmin on Anonymous
155+
156+
Jul 28, 2016 v1.1.1
157+
------------------
158+
- firebase/php-jwt to 4.0.0
159+
- Bump min PHP to 5.3.9 to allow symfony/yaml 2.8.*
160+
161+
Jul 14, 2016 v1.1.0
162+
------------------
163+
- Add Xmf\Database\Migrate class to provide schema synchronization capabilities for modules.
164+
- Bug fixes in Xmf\Database\Tables including option to disable automatic quoting of values in update() and insert() to support using column functions instead of only scalars
165+
4166
01-Jun-2016 V1.0.2
5167
------------------
6168
- fix issues with file name validation in Xmf\Language::loadFile()

0 commit comments

Comments
 (0)