The php_user_filter class

(PHP 5, PHP 7, PHP 8)

Introduction

Children of this class are passed to stream_filter_register(). Note that the __construct method is not called; instead, php_user_filter::onCreate() should be used for initialization.

Class synopsis

classphp_user_filter {
publicstring$filtername = "";
publicmixed$params = "";
public?resource$stream = null;
publicfilter(
    resource$in,
    resource$out,
    int&$consumed,
    bool$closing
): int
publiconClose(): void
publiconCreate(): bool
}

Properties

filtername

Name of the filter registered by stream_filter_append().

params

stream

Table of Contents

To Top