[MEGAPATCH] stream filter improvement

php.internals

Moriyoshi Koizumi

23 years ago
Hi, The attached patch allows stream filter implementations to accept the parameter as a zval rather than a string. For practical example, you'd be able to pass parameters to strip_tags filter in a couple of ways, like: a. stream_filter_append(STDOUT, "string.strip_tags", PHP_STREAM_FILTER_WRITE, "<script><body>"); b. stream_filter_append(STDOUT, "string.strip_tags", PHP_STREAM_FILTER_WRITE, array("script", "body")); And this patch could also reduce my redundant codes in ext/standard/filters.c, so I hope this feature will be introduced in any way even though the patch would be actually bogus. Any comments are welcome. Moriyoshi