@@ -145,7 +145,6 @@ int fpm_status_handle_request(void) /* {{{ */
145
145
bool encode_html , encode_json ;
146
146
char * short_syntax , * short_post ;
147
147
char * full_pre , * full_syntax , * full_post , * full_separator ;
148
- zend_string * _GET_str ;
149
148
150
149
if (!SG (request_info ).request_uri ) {
151
150
return 0 ;
@@ -170,11 +169,13 @@ int fpm_status_handle_request(void) /* {{{ */
170
169
171
170
/* STATUS */
172
171
if (fpm_status_uri && !strcmp (fpm_status_uri , SG (request_info ).request_uri )) {
172
+ zend_string * _GET_str ;
173
+
173
174
fpm_request_executing ();
174
175
175
176
/* full status ? */
176
177
_GET_str = ZSTR_INIT_LITERAL ("_GET" , 0 );
177
- full = ( fpm_php_get_string_from_table ( _GET_str , "full" ) != NULL );
178
+ full = fpm_php_is_key_in_table ( _GET_str , ZEND_STRL ( "full" ));
178
179
short_syntax = short_post = NULL ;
179
180
full_separator = full_pre = full_syntax = full_post = NULL ;
180
181
encode_html = false;
@@ -218,7 +219,7 @@ int fpm_status_handle_request(void) /* {{{ */
218
219
}
219
220
220
221
/* HTML */
221
- if (fpm_php_get_string_from_table (_GET_str , "html" )) {
222
+ if (fpm_php_is_key_in_table (_GET_str , ZEND_STRL ( "html" ) )) {
222
223
sapi_add_header_ex (ZEND_STRL ("Content-Type: text/html" ), 1 , 1 );
223
224
time_format = "%d/%b/%Y:%H:%M:%S %z" ;
224
225
encode_html = true;
@@ -287,7 +288,7 @@ int fpm_status_handle_request(void) /* {{{ */
287
288
}
288
289
289
290
/* XML */
290
- } else if (fpm_php_get_string_from_table (_GET_str , "xml" )) {
291
+ } else if (fpm_php_is_key_in_table (_GET_str , ZEND_STRL ( "xml" ) )) {
291
292
sapi_add_header_ex (ZEND_STRL ("Content-Type: text/xml" ), 1 , 1 );
292
293
time_format = "%s" ;
293
294
encode_html = true;
@@ -335,7 +336,7 @@ int fpm_status_handle_request(void) /* {{{ */
335
336
}
336
337
337
338
/* JSON */
338
- } else if (fpm_php_get_string_from_table (_GET_str , "json" )) {
339
+ } else if (fpm_php_is_key_in_table (_GET_str , ZEND_STRL ( "json" ) )) {
339
340
sapi_add_header_ex (ZEND_STRL ("Content-Type: application/json" ), 1 , 1 );
340
341
time_format = "%s" ;
341
342
@@ -384,7 +385,7 @@ int fpm_status_handle_request(void) /* {{{ */
384
385
}
385
386
386
387
/* OpenMetrics */
387
- } else if (fpm_php_get_string_from_table (_GET_str , "openmetrics" )) {
388
+ } else if (fpm_php_is_key_in_table (_GET_str , ZEND_STRL ( "openmetrics" ) )) {
388
389
sapi_add_header_ex (ZEND_STRL ("Content-Type: application/openmetrics-text; version=1.0.0; charset=utf-8" ), 1 , 1 );
389
390
time_format = "%s" ;
390
391
0 commit comments