-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Since the sockets php extension becomes required from 2.4.0 onwards, … #7398
Conversation
…we can remove this warning.
An admin must run tests on this PR before it can be merged. |
Hi @hostep Thanks for the help. We manually copy the composer.json file to the devdocs repo. When we release the final docs, we grab the final composer.lock file from the main magento repo and copy it over, usually the day before release. So it may not be completely up to date in the beta docs. But in this case, the PHP extensions listed in the sys reqs file coms from the
If the extension also needs to be listed here, we will have to work that out with the engineering team. |
Thanks for the info @dobooth ! Hmm, this means we do have to put it in the Here's what could work, but it's a bit involved and all in theory, I haven't tested this:
Just an idea, not sure if this will be super accurate, but it's the best I could come up with right now. |
Thanks @hostep for the excellent feedback. We are going to discuss this internally, and figure out if we are missing something here and what the right fix is. Thank for the good info. |
We do this automatically at the day of release. |
We have a task (DOC-80) in our backlog to start using Maybe @fascinosum has something to add here. |
This was last resolution after a meeting with engineering (on Feb 4) from the mentioned above ticket:
|
running tests |
Hi @hostep, thank you for your contribution! |
Thanks @dobooth! I'd like to emphasise to gather the php extensions twice, one time after running If you would not do it this way, it would mark Just FYI. |
…we can remove this warning.
Purpose of this pull request
This pull request (PR) prepares the documentation for the
sockets
php extension which becomes required in Magento 2.4.0 and up.It removes this temporary warning and
ext-sockets
should get added to the existing list of extensions. However, this doesn't seem to happen automatically right now, see below under further discussion.This is a follow up on #6922
Affected DevDocs pages
Links to Magento source code
See magento/magento2#27200 & magento/magento2#28585 (comment) which is in progress of being merged in 2.4.0
Further discussion
@dobooth: from what I understand, the following code should generate the required php extensions automatically, right?
<!--{% assign platform-req = site.data.codebase.v2_4.open-source.composer_lock.platform %}--> {% include install/php-extensions-template.md %}
But somehow that's not happening yet, even though the
composer.lock
file in the codebase does show a requirement on thesockets
extension:devdocs/src/_data/codebase/v2_4/open-source/composer_lock.json
Line 3769 in 2fa5ff1
Any idea why this isn't being picked up?
Also: I'm explicitly not putting this in the 2.3 docs, because in Magento 2.3.5 for example, even though the
composer.lock
file mentions it: https://github.com/magento/magento2/blob/2.3.5/composer.lock#L3758, it's still possible to install Magento without it, because of the version constraint on thephp-amqplib/php-amqplib
module still allows version 2.7.x which doesn't require thesockets
extension:https://github.com/magento/magento2/blob/2.3.5/composer.json#L74
And when setting up a Magento 2.3.5 project without the
sockets
extension, composer will be smart enough to downgradephp-amqplib/php-amqplib
to 2.7.x@jfrontain: I think we should also mention the requirement of this
sockets
php extension in the release notes for 2.4.0, just FYI