Horde_Stream_Filter_Null
extends php_user_filter
in package
Stream filter class to remove null (\0) values.
Usage: stream_filter_register('horde_null', 'Horde_Stream_Filter_Null'); stream_filter_[app|pre]pend($stream, 'horde_null', [ STREAM_FILTER_[READ|WRITE|ALL] ], [ $params ]);
$params is an array that can contain the following:
- replace: (string) The string to use to replace null characters with. DEFAULT: ''
Copyright 2012-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Tags
Table of Contents
- $_replace : mixed
- Replacement data
- $_search : mixed
- Search array.
- filter() : mixed
- onCreate() : mixed
Properties
$_replace
Replacement data
protected
mixed
$_replace
$_search
Search array.
protected
mixed
$_search
= "\x00"
Methods
filter()
public
filter(mixed $in, mixed $out, mixed &$consumed, mixed $closing) : mixed
Parameters
- $in : mixed
- $out : mixed
- $consumed : mixed
- $closing : mixed
Tags
Return values
mixed —onCreate()
public
onCreate() : mixed