PHP_FUNCTION(parse_ini_file);
PHP_FUNCTION(str_rot13);
+PHP_FUNCTION(stream_get_filters);
PHP_FUNCTION(stream_register_filter);
PHP_MINIT_FUNCTION(user_filters);
{
}
+/* {{{ proto array stream_get_filters()
+ Returns a list of registered filters */
+PHP_FUNCTION(stream_get_filters)
+{
+ char *filter_name;
+ int filter_name_len = 0;
+
+ array_init(return_value);
+
+ if (BG(user_filter_map)) {
+ for(zend_hash_internal_pointer_reset(BG(user_filter_map));
+ zend_hash_get_current_key_ex(BG(user_filter_map), &filter_name, &filter_name_len, NULL, 0, NULL) == HASH_KEY_IS_STRING;
+ zend_hash_move_forward(BG(user_filter_map)))
+ add_next_index_string(return_value, filter_name, 1);
+ }
+}
+/* }}} */
+
/* {{{ proto bool stream_register_filter(string filtername, string classname)
Registers a custom filter handler class */
PHP_FUNCTION(stream_register_filter)