[PHP4BETA] CVS update: php4

From: Date: Tue, 25 May 1999 21:19:47 +0000
Subject: [PHP4BETA] CVS update: php4
Groups: php.version4 
Request: Send a blank email to php-version4+get-1053@lists.php.net to get a copy of this message
Date: Tuesday May 25, 1999 @ 17:19 Author: zeev Update of /repository/php4 In directory php:/tmp/cvs-serv1524 Modified Files: SAPI.c SAPI.h Log Message: Allow unregistering content types as well. Index: php4/SAPI.c diff -u php4/SAPI.c:1.20 php4/SAPI.c:1.21 --- php4/SAPI.c:1.20 Tue May 25 17:14:53 1999 +++ php4/SAPI.c Tue May 25 17:19:46 1999 @@ -259,3 +259,9 @@ { 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: php4/SAPI.h diff -u php4/SAPI.h:1.14 php4/SAPI.h:1.15 --- php4/SAPI.h:1.14 Tue May 25 17:14:54 1999 +++ php4/SAPI.h Tue May 25 17:19:46 1999 @@ -101,6 +101,7 @@ 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; -- PHP 4 Beta

« previous php.version4 (#1053) next »