Documentation

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
author

Michael J Rubinsky mrubinsk@horde.org

category

Horde

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Table of Contents

$_replace  : mixed
Replacement data
$_search  : mixed
Search array.
filter()  : mixed
onCreate()  : mixed

Properties

$_replace

Replacement data

protected mixed $_replace

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
see
stream_filter_register()
Return values
mixed

onCreate()

public onCreate() : mixed
Tags
see
stream_filter_register()
Return values
mixed

Search results