mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Allow unregistering content types as well.
This commit is contained in:
parent
72f6e823f9
commit
4f545f9c6b
@ -259,3 +259,9 @@ SAPI_API int sapi_register_post_reader(sapi_post_content_type_reader *post_conte
|
||||
{
|
||||
return zend_hash_add(&known_post_content_types, post_content_type_reader->content_type, post_content_type_reader->content_type_len+1, (void *) post_content_type_reader, sizeof(sapi_post_content_type_reader), NULL);
|
||||
}
|
||||
|
||||
|
||||
SAPI_API void sapi_unregister_post_reader(sapi_post_content_type_reader *post_content_type_reader)
|
||||
{
|
||||
zend_hash_del(&known_post_content_types, post_content_type_reader->content_type, post_content_type_reader->content_type_len+1);
|
||||
}
|
@ -101,6 +101,7 @@ SAPI_API int sapi_add_header(char *header_line, uint header_line_len);
|
||||
SAPI_API int sapi_send_headers();
|
||||
|
||||
SAPI_API int sapi_register_post_reader(sapi_post_content_type_reader *post_content_type_reader);
|
||||
SAPI_API void sapi_unregister_post_reader(sapi_post_content_type_reader *post_content_type_reader);
|
||||
|
||||
struct _sapi_module_struct {
|
||||
char *name;
|
||||
|
Loading…
Reference in New Issue
Block a user