@@ -40,22 +40,22 @@ PHPAPI HashTable *_php_get_stream_filters_hash(void)
4040}
4141
4242/* API for registering GLOBAL filters */
43- PHPAPI int php_stream_filter_register_factory (const char * filterpattern , const php_stream_filter_factory * factory )
43+ PHPAPI zend_result php_stream_filter_register_factory (const char * filterpattern , const php_stream_filter_factory * factory )
4444{
45- int ret ;
45+ zend_result ret ;
4646 zend_string * str = zend_string_init_interned (filterpattern , strlen (filterpattern ), true);
4747 ret = zend_hash_add_ptr (& stream_filters_hash , str , (void * )factory ) ? SUCCESS : FAILURE ;
4848 zend_string_release_ex (str , true);
4949 return ret ;
5050}
5151
52- PHPAPI int php_stream_filter_unregister_factory (const char * filterpattern )
52+ PHPAPI zend_result php_stream_filter_unregister_factory (const char * filterpattern )
5353{
5454 return zend_hash_str_del (& stream_filters_hash , filterpattern , strlen (filterpattern ));
5555}
5656
5757/* API for registering VOLATILE wrappers */
58- PHPAPI int php_stream_filter_register_factory_volatile (zend_string * filterpattern , const php_stream_filter_factory * factory )
58+ PHPAPI zend_result php_stream_filter_register_factory_volatile (zend_string * filterpattern , const php_stream_filter_factory * factory )
5959{
6060 if (!FG (stream_filters )) {
6161 ALLOC_HASHTABLE (FG (stream_filters ));
@@ -282,7 +282,7 @@ PHPAPI void php_stream_filter_free(php_stream_filter *filter)
282282 pefree (filter , filter -> is_persistent );
283283}
284284
285- PHPAPI int php_stream_filter_prepend_ex (php_stream_filter_chain * chain , php_stream_filter * filter )
285+ PHPAPI zend_result php_stream_filter_prepend_ex (php_stream_filter_chain * chain , php_stream_filter * filter )
286286{
287287 filter -> next = chain -> head ;
288288 filter -> prev = NULL ;
@@ -303,7 +303,7 @@ PHPAPI void _php_stream_filter_prepend(php_stream_filter_chain *chain, php_strea
303303 php_stream_filter_prepend_ex (chain , filter );
304304}
305305
306- PHPAPI int php_stream_filter_append_ex (php_stream_filter_chain * chain , php_stream_filter * filter )
306+ PHPAPI zend_result php_stream_filter_append_ex (php_stream_filter_chain * chain , php_stream_filter * filter )
307307{
308308 php_stream * stream = chain -> stream ;
309309
@@ -395,7 +395,7 @@ PHPAPI void _php_stream_filter_append(php_stream_filter_chain *chain, php_stream
395395 }
396396}
397397
398- PHPAPI int _php_stream_filter_flush (php_stream_filter * filter , bool finish )
398+ PHPAPI zend_result _php_stream_filter_flush (php_stream_filter * filter , bool finish )
399399{
400400 php_stream_bucket_brigade brig_a = { NULL , NULL }, brig_b = { NULL , NULL }, * inp = & brig_a , * outp = & brig_b , * brig_temp ;
401401 php_stream_bucket * bucket ;
0 commit comments