Niels Dossche
847d1401a0
Fix GH-17208: bug64539-status-json-encoding.phpt fail on 32-bits
...
The reason this breaks is because of a type mismatch.
The following line uses fields of the timeval struct which are both 8 bytes on
Alpine 32-bit, which results in a computed value of also 8 bytes:
b09ed9a0f2/sapi/fpm/fpm/fpm_status.c (L611)
However, it is passed to a format string which expects 4 bytes
(`unsigned long` and thus the `%lu` format specifier is 4 bytes on Alpine 32-bit),
resulting in argument corruption.
Since the value is generally small, truncating to 4 bytes is sufficient to fix this.
Closes GH-17286.
2024-12-27 21:48:15 +01:00
..
2022-11-22 18:02:11 +00:00
2022-09-29 15:15:40 +02:00
2024-12-14 14:59:56 +01:00
2023-08-26 15:19:03 +01:00
2023-05-13 14:11:42 +01:00
2018-10-14 12:56:38 +02:00
2018-10-14 12:56:38 +02:00
2022-08-28 23:33:17 +01:00
2022-08-28 23:24:23 +01:00
2024-06-16 12:23:15 +01:00
2022-08-28 23:24:23 +01:00
2024-12-22 16:27:01 +01:00
2023-03-11 16:34:41 +01:00
2022-08-28 23:24:23 +01:00
2022-08-29 14:40:57 +01:00
2022-08-28 23:33:17 +01:00
2022-07-10 23:21:14 +01:00
2018-10-14 12:56:38 +02:00
2021-02-16 13:09:56 +01:00
2024-02-04 11:58:18 +00:00
2021-02-14 12:03:48 +01:00
2023-02-21 15:50:31 +00:00
2018-10-14 12:56:38 +02:00
2023-11-03 17:17:52 +00:00
2023-05-20 22:49:41 +01:00
2023-05-13 14:11:42 +01:00
2022-08-28 23:24:23 +01:00
2022-08-28 23:35:46 +01:00
2022-08-28 23:24:23 +01:00
2024-12-14 14:59:56 +01:00
2024-12-14 14:59:56 +01:00
2024-03-24 13:57:08 +01:00
2022-08-28 23:24:23 +01:00
2023-02-18 19:52:53 +00:00
2022-08-28 23:24:23 +01:00
2023-07-15 14:21:58 +01:00
2022-08-28 23:24:23 +01:00
2024-12-27 21:48:15 +01:00
2018-10-14 12:56:38 +02:00
2024-09-26 14:13:00 -05:00
2022-08-29 14:39:24 +01:00
2018-10-14 12:56:38 +02:00
2024-05-12 13:30:29 +01:00
2022-08-28 23:24:23 +01:00
2022-08-28 23:24:23 +01:00
2021-11-24 16:13:34 +03:00
2018-10-14 12:56:38 +02:00
2018-10-14 12:56:38 +02:00
2018-10-14 12:56:38 +02:00
2023-07-15 14:21:58 +01:00
2022-12-26 14:14:14 +00:00
2022-11-23 10:38:56 +00:00
2022-11-23 10:38:56 +00:00
2023-02-05 13:07:29 +00:00
2023-02-05 13:07:29 +00:00
2024-11-02 19:37:28 +01:00
2024-03-09 09:41:59 +00:00