Permalink
Browse files

composer.json: add dependency on the PHP "filter" extension. (#1301)

Many of the PHP extensions used by PHPMailer are optional, in one of
two senses. Either there is a fallback if the extension is not
present, or the use of the extension is avoidable entirely. For
example, there is a fallback parser if "imap_rfc822_parse_adrlist" is
not available, and OpenSSL is not needed unless encryption is used;
therefore neither are hard dependencies.

The filter extension, on the other hand, is unavoidable. It is used
unconditionally, with no fallbacks, in (for example) the "isValidHost"
function. This commit adds "ext-filter" to composer.json, to document
the dependency and to help out composer users.

Closes: #1298
  • Loading branch information...
orlitzky authored and Synchro committed Dec 22, 2017
1 parent 9d9021e commit c8613a447bf50f08893d659906036b8e0bcb753d
Showing with 2 additions and 1 deletion.
  1. +2 −1 composer.json
@@ -21,7 +21,8 @@
],
"require": {
"php": ">=5.5.0",
"ext-ctype": "*"
"ext-ctype": "*",
"ext-filter": "*"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.2",

0 comments on commit c8613a4

Please sign in to comment.