-
Notifications
You must be signed in to change notification settings - Fork 7.9k
HAVE_FPM_LQ is always defined #5530
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
Conversation
2 tests on MacOS now fail: sapi/fpm/tests/fpm_get_status_basic.phpt (FPM: Function fpm_get_status
sapi/fpm/tests/status-basic.phpt (FPM: Status basic test)
Which seems to be due that some feature which were enabled although not available on MacOS, what is the way forward here, skip on MacOS and make some dedicated for the platform? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's check with @bukka. Problem is that the status functionality relating to "listen queue" feature was always enabled, even if it is not available.
As it has been like this for a while, maybe it's better to just drop those checks completely and always report?
sapi/fpm/fpm/fpm_status.c
Outdated
@@ -522,7 +523,7 @@ int fpm_status_handle_request(void) /* {{{ */ | |||
} | |||
} | |||
|
|||
#ifdef HAVE_FPM_LQ | |||
#if HAVE_FPM_LQ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why this part is behind HAVE_FPM_LQ...
Yeah I would probably leave the items in status as they have been always there due to this bogus check. So agree with removing the checks completely. |
97fcb44
to
4757323
Compare
I dropped the preprocessing macro in the status file. |
LGTM. Please squash and merge ;) |
As can be seen HAVE_FPM_LQ is always defined: https://heap.space/xref/php-src/sapi/fpm/fpm/fpm_config.h?r=1ad08256#74
Therefore these
#ifdef
usages seems to be bogus.