|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-06-26 09:42 UTC] rainer dot jung at kippdata dot de
-Operating System: Any
+Operating System: Solaris 10 (and older)
[2019-06-26 09:42 UTC] rainer dot jung at kippdata dot de
[2023-03-02 08:23 UTC] croverwnorene8 at googlemail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ The fpm status page contains an item "start time". It is shown in the text view as (example): start time: 24/Mar/2015:14:18:15 +0100 In the json and xml views (short and full) it is shown as: <start-time>%s</start-time> resp. {...,"start time":%s,...} Instead of the correct time a verbatim "%s" is shown. This is due to fpm_status.c setting time_format = "%s"; in the xml and json case, but to time_format = "%d/%b/%Y:%H:%M:%S %z"; in the text and html case. This format is then used in strftime(), e.g. strftime(time_buffer, sizeof(time_buffer) - 1, time_format, localtime(&proc.start_epoch)); Unfortunately "%s" is not a correct strftime format pattern, so strftime does not format the time but instead returns the verbatim "%s" pattern. Please replace time_format = "%s"; by time_format = "%d/%b/%Y:%H:%M:%S %z"; or something else that formats correctly and returns valid xml and json data. The bug applies to the current master branch and also to 5.6, 5.5 and 5.4. Thanks a bunch!