Skip to content
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

PHP 7 error reported when profiling intermediate hook with LSPHP 8.1.24 #188

Open
redbullpeter opened this issue Dec 27, 2023 · 2 comments

Comments

@redbullpeter
Copy link

redbullpeter commented Dec 27, 2023

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

OS:	Linux 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64
Shell:	/usr/sbin/nologin
PHP binary:	/usr/local/lsws/lsphp81/bin/php
PHP version:	8.1.24
php.ini used:	/usr/local/lsws/lsphp81/etc/php/8.1/litespeed/php.ini
MySQL binary:	/usr/bin/mysql
MySQL version:	mysql  Ver 15.1 Distrib 10.6.12-MariaDB, for debian-linux-gnu (x86_64) using  EditLine wrapper
SQL modes:	
WP-CLI root dir:	phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir:	phar://wp-cli.phar/vendor
WP_CLI phar path:	/var/www/xxxxx/html
WP-CLI packages dir:	/nonexistent/.wp-cli/packages/
WP-CLI cache dir:	/nonexistent/.wp-cli/cache
WP-CLI global config:	
WP-CLI project config:	
WP-CLI version:	2.7.1

LSPHP modules installed:
lsphp81 lsphp81-common lsphp81-curl lsphp81-igbinary lsphp81-imagick lsphp81-imap lsphp81-intl lsphp81-msgpack lsphp81-mysql lsphp81-opcache lsphp81-redis

@redbullpeter redbullpeter changed the title PHP 7 error reported when profiling intermediate hook with LSPHP 8.x PHP 7 error reported when profiling intermediate hook with LSPHP 8.1.24 Dec 27, 2023
@danielbachhuber
Copy link
Member

Thanks for the report, @redbullpeter

This issue is already tracked with #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?

@swissspidy
Copy link
Member

The mentioned PHP bug was closed as wontfix as it's intended behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants