User tests: Successful: Unsuccessful:
Joomla v4.4.4
PHP v8.2.17
// Got error 'PHP message: PHP Warning: preg_match(): Compilation failed: missing closing parenthesis at offset 13 in /libraries/src/Updater/Adapter/ExtensionAdapter.php on line 110'
Added preg_quote to the regex pattern of the version check at line 110
Don't know exactly which extension cause this issue, but it happens when the extension update check is triggered from the backend
the above PHP warning occurs
The warning is gone
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Title |
|
Title |
|
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-04-20 11:31:25 |
Closed_By | ⇒ | Artist-Matrix | |
Labels |
Added:
PR-4.4-dev
|
@Artist-Matrix I think this is the wrong fix. As you can see here in the docs for a single update entity, the targetplatform can be a regular expression. If you now use
preg_quote
, special characters will be escaped, see here in the PHP docs: https://www.php.net/manual/en/function.preg-quote.php . This will cause targetplatform values using regular expression to fail.