Hi, PHP 8.0 is planned for release in november 2020. It would be nice to see Magento 2.4 support it on release date.
Today the alpha1 is already available, so we can start to test it in CI tests.
https://wiki.php.net/todo/php80
https://twitter.com/official_php/status/1276198231714783232?s=20
Hi @rvitaliy. Thank you for your report.
To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, please, review the Magento Contributor Assistant documentation.
Please, add a comment to assign the issue: @magento I am working on this
Hi @swathishs. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[ ] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop
branchDetails
- Add the comment @magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!
[ ] 5. Add label Issue: Confirmed
once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
@rvitaliy : Thank you for your report. For GitHub issue tracker is for Magento core technical issues only
Kindly refer to Community Forums or Magento Stack Exchange for technical questions, feature requests, etc.
This is a technical problem, in November we could not use the new version of PHP because your platform will be obsolete again.
I see that time passes but your bad habits don't change. see https://github.com/magento/magento2/issues/27227
If this is your approach to troubleshooting, I can't wait to stop using Magento.
Good job, bya!
Hello @rvitaliy
Thank you for your question!
Let me please provide some clarification.
For now, I have not heard during internal meetings and discuss any future plans for PHP 8.0 support.
But I am sure as soon as Magneto will have any roadmap/plans for this track, it will be announced through public media channels.
This public GitHub issue tracker is aimed at issues/bugs/improvements that ready to work - something that can be taken by any community member and fixing(creating PR).
This issue report looks like an open question that should be discussed.
I mean, it does not just task that ready to work but big and complex Story/Epic.
I would recommend to raise this topic/question and discuss in the next channels first:
Also, I do not see any reason to keep this issue report open.
Because it will be not possible to share updates about this track in time as a comment or links here. As I mentioned such news will be announced using other channels.
This is a technical problem, in November we could not use the new version of PHP because your platform will be obsolete again.
I see that time passes but your bad habits don't change. see #27227
If this is your approach to troubleshooting, I can't wait to stop using Magento.Good job, bya!
I think Magento LTS (OpenMage) will support PHP 8 first as it's more active. Or just use WooCommerce instead. M2 updates are kinda slow and until today PHP 7.4.4 is still not supported. O___O. PHP 7.3 EOL is in 4 months (December 6, 2020).
Hi there, let me provide additional input here.
We are seriously considering PHP 8.0 support for Magento, and some of the features would be especially handy for Magento.
Now we are trying to fit compatibility with PHP 8.0 to our very tight product backlog :)
Currently, we support PHP 7.4 / 7.3, and taking into account that active support of 7.3 will end soon, we switched our CI/CD infrastructure towards 7.4.*
Usually in Magento when we release a major version of the platform we keep supporting throughout all patch releases (in the scope of that major version) all the PHP versions which were actively supported at the time when Magento major release was out. This is done to prevent possible BiC for patch release upgrades.
Also, we separate "support" and "compatibility" in terms of Magento.
Support - is when you are able to use version-specific features, which did not exist before
Compatibility - is when we make sure that everything works as expected, but we don't use features that appeared only in this version and were previously absent.
So, if we would find a way to introduce "Compatibility" of Magento 2.4 with PHP 8.0 - we would definitely do this. Moreover, we really encourage you to help us finding a way of doing this. Thus, all the PRs which provide this compatibility for Magento 2.4 will have a very high priority for us, and we will consider them thoroughly.
@bryanveIoso I did not hear anything about problems with PHP 7.4.4 - could you provide more background here?
@maghamed: @bryanveIoso commented on 7 July, so before Magento 2.4.0 was released (20 July), at that time no Magento versions were out with support for PHP 7.4 馃槈
Thanks for the extra information though!
I will re-open this issue, as it wasn't resolved yet, there is no php 8 support.
Has anyone here already tried to setup a preload feature from 7.4 ?
Update: we already have php 8.0 beta3, would be good at least to try run magento on it.
@ilnytskyi no, I don't, but would be good to see some info about it!
I've tested PHP 8 performance on Magento 2 and compare the results with PHP 7.3. Here it is
https://onilab.com/blog/php-7-vs-php-8/
The bottomline: the PHP 8 JIT is far from being useful in terms of improving the Magento 2 web application performance. However, it is fair to say that the feature perfectly copes with its tasks on simple code.
@Alex88-hub
It's not just about performance!
With PHP 8, several improvements have been introduced in the language syntax that help improve the maintainability of the code.
For more information: https://stitcher.io/blog/new-in-php-8
I think it's a real shame that we can't take advantage of them yet.
FYI I just published a new Docker image for PHP 8.0 at https://github.com/markshust/docker-magento/tree/master/images/php/8.0
You can use the standard docker-compose setup at https://github.com/markshust/docker-magento and install Magento as usual. After it's installed, update the docker-compose.dev.yml
file to use the new image/tag:
markoshust/magento-php:8.0-fpm-develop
I hope this helps out those who want to test Magento 2 on PHP 8. It should be very easy & simple to get an instance up & running that is easily replicable to diagnose/test issues.
Most helpful comment
This is a technical problem, in November we could not use the new version of PHP because your platform will be obsolete again.
I see that time passes but your bad habits don't change. see https://github.com/magento/magento2/issues/27227
If this is your approach to troubleshooting, I can't wait to stop using Magento.
Good job, bya!