Commit Graph

2454 Commits

Author SHA1 Message Date
Marcus Bointon 2f5c94fe74
6.9.3 2024-11-24 19:04:13 +01:00
Marcus Bointon 2c73ad9dd5
Changelog 2024-11-22 06:36:49 +01:00
Marcus Bointon 7e2e8d53e6
Merge pull request #3115 from jrfnl/feature/ghactions-update-for-php-8.4-release
GH Actions: PHP 8.4 has been released
2024-11-22 05:02:58 +01:00
jrfnl 7c786ca890
GH Actions: PHP 8.4 has been released
* Builds against PHP 8.4 are no longer allowed to fail.
* Add _allowed to fail_ builds against PHP 8.5.

Ref: https://www.php.net/releases/8.4/en.php
2024-11-22 01:58:32 +01:00
Marcus Bointon 561609ac2e
Merge pull request #3114 from emmanuel-ferdman/master
Update `PHPMailerTest.php` reference
2024-11-18 16:50:36 +01:00
Emmanuel Ferdman 5c95844f50
Update `PHPMailerTest.php` reference
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2024-11-18 07:29:21 -08:00
Marcus Bointon 611235697c
CS 2024-10-21 11:42:14 +02:00
Marcus Bointon 5fc8d634b5
Clarify comment 2024-10-21 11:36:38 +02:00
Marcus Bointon 182f7b9158
Use rfc-editor.org for all docs links 2024-10-15 22:20:47 +02:00
Marcus Bointon a7b17b42fa
6.9.2 2024-10-09 12:07:50 +02:00
Marcus Bointon f658da94f1
Changelog 2024-10-02 23:35:19 +02:00
Marcus Bointon 4617ffee59
Changelog 2024-10-02 23:32:15 +02:00
Marcus Bointon df46489479
Add Kurdish Sorani translation 2024-10-02 23:26:04 +02:00
Marcus Bointon d234e50f25
Simpler regex 2024-10-02 23:17:14 +02:00
Marcus Bointon c1c075a69e
This will never match, so look for a string instead 2024-10-02 23:17:13 +02:00
Marcus Bointon f851553d26
Merge pull request #3020 from Yurunsoft/fix-set_error_handler
Fix cannot access protected method
2024-10-02 23:12:07 +02:00
Marcus Bointon 7a67257f84
Merge pull request #3003 from jeijei4/patch-1
Update of PHPDoc comment of the addOrEnqueueAnAddress function
2024-10-02 22:45:21 +02:00
Marcus Bointon 9d05d769dd
Merge pull request #3096 from jrfnl/feature/ghactions-extension-variation-in-tests
GH Actions: test with different sets of extensions
2024-10-02 08:41:43 +02:00
jrfnl 6b2e692d45
GH Actions: test with different sets of extensions
PHP 8.4 removes the IMAP extension (moved to PECL).

With this in mind, I've reviewed how the tests are being run versus the extension requirements and recommendations.

As things are, the tests are currently run in the "ideal" environment, i.e. with all required and optional extensions available.

However, the codebase also contains fall-backs for when certain extensions are **_not_** available and for at least some of those fallbacks, there are dedicated tests available, but in an ideal environment those tests will not run and the fall-backs are not tested, which is the case with the current CI setup.

To improve this situation, I'm proposing to keep running the tests against all PHP versions with the "ideal" extension set, but to also have additional test runs with a far more limited set of PHP extensions.

To determine which extensions should be in each set, I've looked at the following:
* `@requires` tags found in the test suite and the conditions for calls to `markTestSkipped()`.
    This brought to light that the `openssl` extension was currently not listed in the "ideal" extension set. This has now been fixed.
* The required extensions of PHPUnit - `dom, json, libxml, mbstring, tokenizer, xml, xmlwriter`.
* The required extensions of PHPMailer itself - `ctype, filter, hash`.
* Not strictly required, but more for convenience/workflow speed: `curl` for Composer.
* And `xdebug` will still be enabled/disabled based on the `coverage` setting.

Note: while some tests would benefit from being run _without_ the `mbstring` extension, that's unfortunately not an option as `mbstring` is a requirement of PHPUnit 🤷

Also note, the tests with the "minimal" extension setup needs to run `composer install` with an `--ignore-platform-req` flag to prevent running into the following issue:
```
Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
```

As this extension "requirement" is for a dependency which is not used in the test run, the extension requirement can be safely ignored.
2024-09-18 17:34:12 +02:00
Marcus Bointon 81599d1554
Merge pull request #3094 from jrfnl/feature/testGivenIdnAddress-set-requirements
PHPMailerTest::testGivenIdnAddress...(): set test requirements
2024-09-18 16:27:31 +02:00
jrfnl 6028776a63
PHPMailerTest::testGivenIdnAddress...(): set test requirements
As per the discussion in 3092, this commit removes the `fakefunctions.php` file and adds explicit requirements for the `PHPMailerTest::testGivenIdnAddress_addAddress_returns_true()` test method.

Closes 3092
2024-09-12 09:11:34 +02:00
Marcus Bointon b554b1e6ca
Merge pull request #3091 from jrfnl/feature/tests-fix-dkim-test
DKIMTest: two fixes for tests for when OpenSSL is disabled/unavailable
2024-09-12 08:43:06 +02:00
jrfnl 78146fb172
DKIMTest::testDKIMSignOpenSSLNotAvailable(): fix the test
As things were, the `DKIMTest::testDKIMSignOpenSSLNotAvailable()` could not pass as the `DKIMTest` class sets the `USE_EXCEPTIONS` class constant to `true`, which means the method would fail on an exception.

As this test is specifically about testing the behaviour when exceptions are _disabled_, the test needs to be in its own test class, which sets `USE_EXCEPTIONS` to `false`.

That should allow the test to run properly and to pass.
2024-09-11 21:05:02 +02:00
jrfnl 10f76cd790
DKIMTest: make exception expectation more specific
As things were, the `DKIMTest::testDKIMSignOpenSSLNotAvailableException()` test _could_ potentially pass even when another `Exception` than the `PHPMailer\PHPMailer\Exception` was being thrown, as _all_ exceptions extend the PHP native `Exception` class.
Now this risk is not that high, as there is also a check on the exception message, but still.

Making the exception expectation more specific (by changing the import `use` statement), should still make the test more stable.
2024-09-11 21:05:02 +02:00
Marcus Bointon aaddfdf6ec
Merge pull request #3090 from jrfnl/feature/composer-no-lock
Composer: prevent a lock file from being created
2024-09-11 19:07:10 +02:00
jrfnl 3a8e00e4dc
Composer: prevent a lock file from being created
Composer 1.10.0 introduced a `lock` config option, which, when set to `false` will prevent a `composer.lock` file from being created and will ignore it when one exists.

This is a useful option for packages like PHPMailer where the `lock` file has no meaning.

It also makes life more straight-forward for contributors as they don't have to remember that for this repo they should use `composer update` instead of `composer install`. Both will now work the same.

Refs:
https://getcomposer.org/doc/06-config.md#lock
2024-09-11 18:20:45 +02:00
Marcus Bointon 6acfa78df6
Merge pull request #3083 from murongshaozong/master
chore: fix some comments
2024-08-13 10:38:49 +02:00
murongshaozong 19989e4165 chore: fix some comments
Signed-off-by: murongshaozong <netease163@icloud.com>
2024-08-13 15:07:00 +08:00
Marcus Bointon 3d01e8e5ea
Merge pull request #3079 from PHPMailer/dependabot/github_actions/ossf/scorecard-action-2.4.0
GH Actions: Bump ossf/scorecard-action from 2.3.1 to 2.4.0
2024-07-29 15:41:38 +02:00
dependabot[bot] a93c0f2eb1
GH Actions: Bump ossf/scorecard-action from 2.3.1 to 2.4.0
Bumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/ossf/scorecard-action/releases)
- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)
- [Commits](0864cf1902...62b2cac7ed)

---
updated-dependencies:
- dependency-name: ossf/scorecard-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-29 06:02:58 +00:00
Marcus Bointon 4a171fd017
Update changelog.md 2024-07-20 16:03:33 +02:00
Marcus Bointon e6d79a4853
Merge pull request #3074 from ProjectSoft-STUDIONIONS/patch-1
Full translation into Russian
2024-07-20 16:02:33 +02:00
ProjectSoft cad92ca7bd
Full translation into Russian 2024-07-20 16:48:39 +04:00
Marcus Bointon 47f3dbbec1
Merge pull request #3071 from decomplexity/patch-3
Additional operands for GoogleAPI for .json management
2024-07-04 19:06:38 +02:00
decomplexity e79d9f251b
Additional operands for GoogleAPI for .json management
V4.1.0 of the SendOauth2 wrapper introduces two new optional operands for the invocation of both the standard PHPMailer email application and for the complete replacement of a PHPMailer application by the wrapper SendOauth2A front-end. These operands allow the developer to specify a name for the .json credentials file and/or whether the wrapper should dynamically build this .json file or use an already-built one, created  either by Google (its standard download) or by the developer.
2024-07-04 17:18:57 +01:00
decomplexity 10f8e5a7a9
Additional operands for GoogleAPI for .json management
V4.1.0 of the SendOauth2 wrapper introduces two new optional operands for the invocation of both the standard PHPMailer email application and for the complete replacement of a PHPMailer application by the wrapper SendOauth2A front-end. These operands allow the developer to specify a name for the .json credentials file and/or whether the wrapper should dynamically build this .json file or use an already-built one, created  either by Google (its standard download) or by the developer.
2024-07-04 16:36:48 +01:00
Marcus Bointon 06e6e80713
Update UPGRADING.md 2024-05-16 10:22:19 +02:00
Marcus Bointon 829def3388
Update for Codecov token handling change 2024-04-09 11:06:30 +02:00
Marcus Bointon 7bbeaff562
Merge pull request #3013 from PHPMailer/dependabot/github_actions/codecov/codecov-action-4
GH Actions: Bump codecov/codecov-action from 3 to 4
2024-04-09 11:02:24 +02:00
Marcus Bointon e8135be763
Try to persuade postfix to install 2024-04-08 20:25:15 +02:00
Marcus Bointon bd0ac03cb2
Changelog 2024-04-08 20:11:42 +02:00
Marcus Bointon 4551149ba2
IDE help 2024-04-08 20:11:42 +02:00
Marcus Bointon fb317f2a36
Clean up 2024-04-08 20:11:41 +02:00
Marcus Bointon 41027807eb
Merge pull request #3027 from saqibsra/master
Add urdu language support
2024-04-08 20:02:15 +02:00
Marcus Bointon 3c7ed1e7c8
Merge pull request #3006 from arakim/master
Update phpmailer.lang-ja.php
2024-04-08 20:01:33 +02:00
Marcus Bointon 62ed471071
Update phpmailer.lang-ja.php
Remove breaks - this is not really PHP!
2024-04-08 20:00:47 +02:00
Marcus Bointon 400aeae82c
Merge pull request #3047 from axi/#3045
Remove potential ending line break when using edebug() with LoggerInterface
2024-04-08 19:11:49 +02:00
Alexis Urien 72df7924ae Remove potential ending line break when using edebug() with LoggerInterface 2024-04-08 10:06:16 -07:00
Alexis Urien 01db3e6b24 Remove potential ending line break when using edebug() with LoggerInterface 2024-04-08 08:52:41 -07:00
Alexis Urien df33c89c5b Remove potential ending line break when using edebug() with LoggerInterface 2024-04-08 08:40:09 -07:00