Php/docs/stream.resources
来自菜鸟教程
Stream Classes
User designed wrappers can be registered via stream_wrapper_register(), using the class definition shown on that manual page.
Class php_user_filter is predefined and is an abstract baseclass for use with user defined filters. See the manual page for stream_filter_register() for details on implementing user defined filters.