-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Magento 2.4.4] Class Magento\Framework\Profiler\Driver\Standard\Stat not compatible with PHP 8.1 #35307
Comments
Hi @guvra. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @guvra, We have tried to reproduce the issue in Magento 2.4.4 but for us, the issue is not reproducible. Please find attached the below custom module and let us know in case we have missed anything here. We are using PHP 8.1 and Magento 2.4.4 in order to reproduce the issue. Let us know in case we have missed anything. Thanks |
@engcom-Hotel Hi, You don't add any timer in your example, which is why you can't reproduce it. Look at this loop in the Stat class:
There are situations where timerIds[$j] is set to null. |
Hello @guvra, Thank you for your report and collaboration! We have again tried to reproduce the issue by adding timers in the custom module and the issue is reproducible. We are getting the below error while running the custom module: Hence confirming this issue. Thanks |
✅ Jira issue https://jira.corp.magento.com/browse/AC-2882 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
❌ You don't have permission to export this issue. |
Preconditions (*)
Steps to reproduce (*)
getFilteredTimerIds
of the class Magento\Framework\Profiler\Driver\Standard\Stat.Expected result (*)
Actual result (*)
The error happens in the protected method
_getOrderedTimerIds
:$timerIds[$j] is set to null at line 216, so the call to strpos at line 210 fails (strpos only accepts string values in PHP 8.1).
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: