- sapi_post_entry entry = {NULL, 0, NULL, NULL};
-
- entry.post_reader = sapi_read_standard_form_data;
- entry.post_handler = php_json_post_handler;
+ sapi_post_entry json_post_entries[] = {
+ { "text/json", sizeof("text/json")-1, sapi_read_standard_form_data, php_json_post_handler },
+ { "application/json", sizeof("application/json")-1, sapi_read_standard_form_data, php_json_post_handler },
+ { NULL, 0, NULL, NULL }
+ };