Open redbullpeter opened 11 months ago
Thanks for the report, @redbullpeter
This issue is already tracked with https://github.com/wp-cli/profile-command/issues/126
As far as I know, it hasn't been fixed in PHP yet, and we haven't embarked upon the refactor for it.
Is there additional context you can share? Would it be satisfactory to simply update the error message to mention PHP 7 and PHP 8?
The mentioned PHP bug was closed as wontfix as it's intended behavior.
Bug Report
Describe the current, buggy behavior
My server is setup to use LSPHP for command line PHP.
The command: wp profile hook plugins_loaded:before Results in:
Error: Profiling intermediate hooks is broken in PHP 7, see https://bugs.php.net/bug.php?id=72966
There are no issues profiling non-intermediate hooks.
Describe how other contributors can replicate this bug
Command run in the the root Wordpress folder: wp profile hook plugins_loaded:before
Describe what you would expect as the correct outcome
Expected output is the default table results
Let us know what environment you are running this on
LSPHP modules installed: lsphp81 lsphp81-common lsphp81-curl lsphp81-igbinary lsphp81-imagick lsphp81-imap lsphp81-intl lsphp81-msgpack lsphp81-mysql lsphp81-opcache lsphp81-redis