- for (i = HTTP_MIN_REQUEST_METHOD; i < HTTP_MAX_REQUEST_METHOD; ++i) {
- phpstr_appendl(known_request_methods, http_request_method_name(i));
- phpstr_appends(known_request_methods, ", ");
- }
- for (i = 0; i < G->request.methods.custom.count; ++i) {
- if ((entry = ((struct _entry **) G->request.methods.custom.entries)[i])) {
- phpstr_appendf(custom_request_methods, "%s, ", entry->name);
+ for (i = 0; i < HTTP_G->request.methods.custom.count; ++i) {
+ if (ptr[i]) {
+ phpstr_appendf(custom_request_methods, "%s, ", ptr[i]->name);