@@ -143,7 +143,6 @@ int fpm_status_handle_request(void) /* {{{ */
143
143
int full , encode , has_start_time ;
144
144
char * short_syntax , * short_post ;
145
145
char * full_pre , * full_syntax , * full_post , * full_separator ;
146
- zend_string * _GET_str ;
147
146
148
147
if (!SG (request_info ).request_uri ) {
149
148
return 0 ;
@@ -168,11 +167,13 @@ int fpm_status_handle_request(void) /* {{{ */
168
167
169
168
/* STATUS */
170
169
if (fpm_status_uri && !strcmp (fpm_status_uri , SG (request_info ).request_uri )) {
170
+ zend_string * _GET_str ;
171
+
171
172
fpm_request_executing ();
172
173
173
174
/* full status ? */
174
175
_GET_str = ZSTR_INIT_LITERAL ("_GET" , 0 );
175
- full = fpm_php_is_key_in_table (_GET_str , "full" , strlen ("full" ));
176
+ full = fpm_php_is_key_in_table (_GET_str , ZEND_STRL ("full" ));
176
177
short_syntax = short_post = NULL ;
177
178
full_separator = full_pre = full_syntax = full_post = NULL ;
178
179
encode = 0 ;
@@ -215,7 +216,7 @@ int fpm_status_handle_request(void) /* {{{ */
215
216
}
216
217
217
218
/* HTML */
218
- if (fpm_php_is_key_in_table (_GET_str , "html" , strlen ("html" ))) {
219
+ if (fpm_php_is_key_in_table (_GET_str , ZEND_STRL ("html" ))) {
219
220
sapi_add_header_ex (ZEND_STRL ("Content-Type: text/html" ), 1 , 1 );
220
221
time_format = "%d/%b/%Y:%H:%M:%S %z" ;
221
222
encode = 1 ;
@@ -284,7 +285,7 @@ int fpm_status_handle_request(void) /* {{{ */
284
285
}
285
286
286
287
/* XML */
287
- } else if (fpm_php_is_key_in_table (_GET_str , "xml" , strlen ("xml" ))) {
288
+ } else if (fpm_php_is_key_in_table (_GET_str , ZEND_STRL ("xml" ))) {
288
289
sapi_add_header_ex (ZEND_STRL ("Content-Type: text/xml" ), 1 , 1 );
289
290
time_format = "%s" ;
290
291
encode = 1 ;
@@ -332,7 +333,7 @@ int fpm_status_handle_request(void) /* {{{ */
332
333
}
333
334
334
335
/* JSON */
335
- } else if (fpm_php_is_key_in_table (_GET_str , "json" , strlen ("json" ))) {
336
+ } else if (fpm_php_is_key_in_table (_GET_str , ZEND_STRL ("json" ))) {
336
337
sapi_add_header_ex (ZEND_STRL ("Content-Type: application/json" ), 1 , 1 );
337
338
time_format = "%s" ;
338
339
@@ -379,7 +380,7 @@ int fpm_status_handle_request(void) /* {{{ */
379
380
}
380
381
381
382
/* OpenMetrics */
382
- } else if (fpm_php_is_key_in_table (_GET_str , "openmetrics" , strlen ("openmetrics" ))) {
383
+ } else if (fpm_php_is_key_in_table (_GET_str , ZEND_STRL ("openmetrics" ))) {
383
384
sapi_add_header_ex (ZEND_STRL ("Content-Type: application/openmetrics-text; version=1.0.0; charset=utf-8" ), 1 , 1 );
384
385
time_format = "%s" ;
385
386
0 commit comments