-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
bug64539-status-json-encoding.phpt fail on 32-bits #17208
Comments
Hmm, this part is really strange:
For some reason it's not getting query string. It will need some debugging. I just created #17239 which will allow printing a bit more info for this with setting |
Here's debug build and logs
|
Was able to reproduce this in an i386/alpine container. |
The reason this breaks is because of a type mismatch. php-src/sapi/fpm/fpm/fpm_status.c Line 611 in b09ed9a
However, it is passed to a format string which expects 4 bytes ( @andypost Please try the following patch: diff --git a/sapi/fpm/fpm/fpm_status.c b/sapi/fpm/fpm/fpm_status.c
index cc3412149c7..96bdb96e408 100644
--- a/sapi/fpm/fpm/fpm_status.c
+++ b/sapi/fpm/fpm/fpm_status.c
@@ -608,7 +608,7 @@ int fpm_status_handle_request(void) /* {{{ */
time_buffer,
(unsigned long) (now_epoch - proc->start_epoch),
proc->requests,
- duration.tv_sec * 1000000UL + duration.tv_usec,
+ (unsigned long) (duration.tv_sec * 1000000UL + duration.tv_usec),
proc->request_method[0] != '\0' ? proc->request_method : "-",
proc->request_uri[0] != '\0' ? proc->request_uri : "-",
query_string ? "?" : "",
|
Description
The following test fails on 32-bit arches building 8.4.2 for Alpinelinux https://gitlab.alpinelinux.org/alpine/aports/-/pipelines/283003
PHP Version
PHP 8.4.2
Operating System
Alpinelinux
The text was updated successfully, but these errors were encountered: