]> granicus.if.org Git - php/commitdiff
Allow unregistering content types as well.
authorZeev Suraski <zeev@php.net>
Tue, 25 May 1999 21:19:46 +0000 (21:19 +0000)
committerZeev Suraski <zeev@php.net>
Tue, 25 May 1999 21:19:46 +0000 (21:19 +0000)
main/SAPI.c
main/SAPI.h

index e43e2dadac9c8446793a2d120bb4fcb53e462b9d..9ae0d1973ad6a3073ef3b39b3f78a517b3a31c30 100644 (file)
@@ -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);
+}
\ No newline at end of file
index bf840441bd8fda7559da11be4d21ec65c8f59c41..fbbddf5f5d3882f27e4cf4d8cc0e58fe99f8950e 100644 (file)
@@ -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;