Cameron
3b41b8a9d1
Fix for deprecation notices when running tests on PHP 8.2. Upgraded Conception to 4.2.2
2023-01-08 08:46:17 -08:00
Nick Liu
3c9c623f2d
README.md: Fix badge for Codeception unit tests
...
Because of https://github.com/badges/shields/issues/8671
2023-01-07 10:22:08 +01:00
Cameron
f4373195a2
Fixes #4945 $_GET['configure'] was always being set in the admin area.
2023-01-05 15:47:12 -08:00
Cameron
d2bb0d8a0b
Minor styling tweak.
2023-01-04 17:44:23 -08:00
Cameron
4523faae37
Styling fix for debug info within admin alerts.
2023-01-04 09:33:15 -08:00
Cameron
fe8fb34cb4
Closes #4941 - Support for cURL POST, PUT, JSON.
2023-01-04 09:31:58 -08:00
Cameron
3bdb545b07
Merge pull request #4939 from Deltik/fix/4938
...
#4938 : Workaround for PHP 8.2.0 segmentation fault / assertion error
2023-01-03 09:11:59 -08:00
Cameron
1b578652c4
Fix for debug info failing in some cases.
2023-01-03 08:46:19 -08:00
Nick Liu
6b75f341ad
#4938 : Workaround for PHP 8.2.0 segmentation fault / assertion error
...
Casting a `SimpleXMLElement` to an array should be equivalent to
`get_object_vars(…)` as far as I can tell. At least all existing
tests pass and I don't see any visual regressions upon making this
change.
By replacing `get_object_vars(…)` with a cast to array, we sidestep
this PHP 8.2.0 bug: https://github.com/php/php-src/issues/10200
Fixes: https://github.com/e107inc/e107/issues/4938
2023-01-02 14:24:57 +01:00
Nick Liu
f564f95640
BUG_REPORT.md: Update sed regex match to skip other HTML attributes
...
A line can now be:
<h2><a id="module_bcmath" href="#module_bcmath">bcmath</a></h2>
Instead of just:
<h2><a id="module_bcmath">bcmath</a></h2>
2023-01-02 14:21:35 +01:00
Cameron
bdcdf5cf27
Fixes #4933 - Cron Last-Run value missing.
2022-12-31 10:12:14 -08:00
Nick Liu
eba3a9a367
Tests: e107EmailTest::testMsgHTML()
: Enforce SMTP-style line endings
...
On older PHP versions, the line ending seems to be indeterminate?
Changing the test mailer from "mail" to "smtp" should enforce CRLF
line endings instead of maybe CRLF, maybe LF.
2022-12-29 22:21:09 +01:00
Nick Liu
43792c4505
Tests: Fix "September" behavior difference in testBuildDateLocale()
...
Whether "Sep" or "Sept" is the short month name for "%h" apparently
depends on `DateTime` or ext-intl, not on whether Microsoft Windows is
used. Or something like that. PHP is weird…
2022-12-29 21:55:12 +01:00
Nick Liu
cd5c94ecb4
eShims::strftime()
: Ensure callable from format map is a closure
...
Otherwise, one might encounter `is_callable("dd")` and a
`function dd(…)` is defined, leading to that function being called
instead of the string being used directly as the replacement.
2022-12-29 21:52:47 +01:00
Nick Liu
9abac0970b
Tests: Correct Codeception method signature in \Helper\Base::_before()
2022-12-29 16:54:11 +01:00
Cameron
bed9c3d5df
Merge pull request #4931 from Deltik/fix/4929
...
Fixes #4929 : Fix type mismatch in usage of `e107forum::getForumClassMembers()`
2022-12-26 10:58:07 -08:00
Cameron
08ad3170aa
Merge pull request #4926 from Jimmi08/patch-1
...
Issue #4925 Missing national character from toAscii()
2022-12-26 10:54:29 -08:00
Nick Liu
566cde0f4c
#4929 : Fix type mismatch in usage of e107forum::getForumClassMembers()
...
Also, `e107forum::getForumClassMembers()` is now documented and
deprecated because it has unintuitive return values.
Fixes: https://github.com/e107inc/e107/issues/4929
2022-12-25 11:58:46 +01:00
Cameron
ec68c88910
Closes #4927 Extra options added to bbarea()
2022-12-18 18:36:36 -08:00
Jimako
86562b628e
missing national character from toAscii()
...
part fix for national https://github.com/e107inc/e107/issues/4925
2022-12-18 20:47:57 +01:00
Moc
159fc98009
Add label to rating template
2022-12-18 14:39:09 +01:00
Cameron
6bad3580a8
Issue #4923 Tweaked to prevent conflict with <button value=''> . Allow HTML for FontAwesome icons.
2022-12-16 11:32:52 -08:00
Nick Liu
90ab73d9cc
PHP bug 66773 workaround in Hybridauth
...
In PHP 7.0.12 and earlier, a class could not be loaded with the same
name as another class in a different namespace. This commit patches the
Hybridauth dependency to avoid PHP bug 66773. Unfortunately, the fix
will be rolled back any time Hybridauth is updated or overwritten.
PHP bug link: https://bugs.php.net/bug.php?id=66773
(cherry picked from commit 539c3f1a672330d460a8cffa63adc63902ae4da4)
(cherry picked from commit 7994746dabe1ecfe15cc89c1fa14b7848113dc90)
2022-12-16 12:25:23 -06:00
Cameron
bc6d371942
Closes #4924 - sendEmail() updated.
2022-12-15 22:11:05 -08:00
Cameron
5f84a8253e
Vendor folder upgrades:
...
- Upgrading hybridauth/hybridauth (v3.8.0 => v3.8.2)
- Upgrading guzzlehttp/psr7 (1.8.5 => 1.9.0)
- Upgrading matthiasmullie/minify (1.3.68 => 1.3.70)
- Upgrading phpmailer/phpmailer (v6.6.0 => v6.7.1)
2022-12-15 20:46:33 -08:00
Nick Liu
25a8b68753
Tests: Opt out of Git mitigation of CVE-2022-24765
...
We are always a single user when running unit tests in the container.
Suppresses this error:
```
$ git submodule update --init --recursive --remote
fatal: detected dubious ownership in repository at '/__w/e107/e107'
To add an exception for this directory, call:
git config --global --add safe.directory /__w/e107/e107
```
2022-12-14 17:57:52 -06:00
Cameron
3f73b9ccca
Issue #4918 Missing LANs.
2022-12-14 14:38:42 -08:00
Cameron
8e813f840b
Issue #4922 - Tweaked event test output.
2022-12-14 14:26:08 -08:00
Cameron
83518a3078
Fixes #4923 - data-modal-submit attribute. Also setting data-modal-close to 'false' will hide the close button in the modal window footer.
2022-12-14 14:24:08 -08:00
Cameron
78d4809d15
Closes #4922 - Option for plugins to extend notification routing.
2022-12-13 18:30:12 -08:00
Cameron
05b1b040c8
Closes #4922 - Option for plugins to extend notification routing.
2022-12-13 18:23:48 -08:00
Cameron
f85de1ba5b
Issue #3701 Tweaked code output.
2022-12-12 15:16:00 -08:00
Cameron
d12d3f1333
Closes #3701 Plugin builder class moved to its own file. Default plugin icons are now created if an images/ folder is not found. Simple test added for detecting PHP notices etc. Some cleanup of generated code.
2022-12-12 15:00:30 -08:00
Nick Liu
f6a225a979
Tests: Add Ubuntu 22.04 to acceptance test operating systems
2022-12-11 22:55:09 -06:00
Cameron
0ae82a7d78
Merge pull request #4921 from Deltik/hotfix/tests/unit
...
Hotfix for tests failing after PHP 8.2 released
2022-12-11 10:18:23 -08:00
Nick Liu
8ae4fe15c0
Tests: Add new service versions: MariaDB 10.6, MariaDB 10.10
...
PHP 8.2: Not yet because of a segmentation fault:
```
php: /tmp/php-build/source/8.2.0/Zend/zend_builtin_functions.c:763: zif_get_object_vars: Assertion `!(((__ht)->u.flags & (1<<2)) != 0)' failed.
```
2022-12-10 19:50:02 -06:00
Nick Liu
0251897e41
Tests: Pin Xdebug 3.1.6 for PHP 7.2 through PHP 7.4
...
Xdebug 3.2.0 and newer dropped support for PHP 7.2 through PHP 7.4.
Source: https://bugs.xdebug.org/bug_view_page.php?bug_id=00002014
2022-12-10 17:24:38 -06:00
Nick Liu
9d4aba8438
Tests: Disable broken acceptance tests
...
Planning to add them back when I make them more robust…
2022-12-10 17:06:34 -06:00
Cameron
93a05dc777
Closes #4919 - Enhancement: plugins may now use their own custom email templates with sendEmail();
2022-12-10 08:47:01 -08:00
Cameron
aba1b27108
Fixes #4842 Removed PHP Warning.
2022-12-10 07:23:14 -08:00
Cameron
7c8ceea891
Fixes #4904 HTML markup
2022-12-10 07:17:42 -08:00
Cameron
d960829532
Issue #4918 - Undefined constants cleanup.
2022-12-10 07:06:47 -08:00
Cameron
60d9c29af3
Fixes #4916 - Undefined LAN.
2022-12-10 05:44:50 -08:00
Cameron
9f7560ba37
Issue #4917 Possible fix for e_url_list distortion. Removed use of deprecated save_addon_prefs() method in favor of buildAddonPrefLists().
2022-12-09 08:27:58 -08:00
Nick Liu
ada4ed13be
Tests: Rework acceptance tests to set up LAMP at testing time
...
We may be able to test different operating systems this way.
2022-12-07 21:18:41 -06:00
Cameron
2e04931775
Fixes #4915 - uiAlert not displaying within admin area.
2022-12-05 14:19:36 -08:00
Cameron
a367b34aeb
Merge pull request #4913 from Deltik/fix/4912
...
Tests: MDEV-29446 workaround: Ignore COLLATE clause in SHOW CREATE TABLE
2022-12-01 12:48:06 -08:00
Nick Liu
ae3c57a5b4
Tests: MDEV-29446 workaround: Ignore COLLATE clause in SHOW CREATE TABLE
...
https://jira.mariadb.org/browse/MDEV-29446 changes the output of
`SHOW CREATE TABLE`, which MySQL and MariaDB 10.2 and older do not do.
To tolerate the new behavior, this change strips the `COLLATE` clause
from the `SHOW CREATE TABLE` output to ignore it.
Fixes: https://github.com/e107inc/e107/issues/4912
2022-11-30 17:57:48 -06:00
Cameron
83d29f3114
Issue #4907 - tweaked cursor style, removed row hover.
2022-11-12 11:19:20 -08:00
Cameron
4c2ff6c37e
Closes #4907 - Improved interface on database table verification form.
2022-11-12 11:14:37 -08:00