mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
Backout changes between 1.6 and 1.7
This commit is contained in:
parent
6591b9c826
commit
f4f313ff40
@ -414,27 +414,21 @@ static void filter_item_dtor(struct php_user_filter_data *fdat)
|
||||
{
|
||||
}
|
||||
|
||||
/* {{{ proto array stream_get_filters([bool system])
|
||||
/* {{{ proto array stream_get_filters(void)
|
||||
Returns a list of registered filters */
|
||||
PHP_FUNCTION(stream_get_filters)
|
||||
{
|
||||
char *filter_name;
|
||||
int key_flags, filter_name_len = 0;
|
||||
zend_bool return_system = 0;
|
||||
HashTable *filters_hash;
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &return_system) == FAILURE) {
|
||||
RETURN_FALSE;
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
WRONG_PARAM_COUNT;
|
||||
}
|
||||
|
||||
array_init(return_value);
|
||||
|
||||
/* TODO: Bug #21487 */
|
||||
|
||||
if (return_system)
|
||||
filters_hash = php_get_stream_filters_hash();
|
||||
else
|
||||
filters_hash = BG(user_filter_map);
|
||||
filters_hash = php_get_stream_filters_hash();
|
||||
|
||||
if (filters_hash) {
|
||||
for(zend_hash_internal_pointer_reset(filters_hash);
|
||||
|
Loading…
Reference in New Issue
Block a user