1--TEST--
2testing the behavior of stream_filter_register
3--CREDITS--
4Robrecht Plaisier <php@mcq8.be>
5User Group: PHP-WVL & PHPGent #PHPTestFest
6--FILE--
7<?php
8class foo extends php_user_filter {
9  function filter($in, $out, &$consumed, $closing): int {
10  }
11}
12
13class bar extends php_user_filter {
14  function filter($in, $out, &$consumed, $closing): int {
15  }
16}
17
18var_dump(stream_filter_register("myfilter","foo"));
19var_dump(stream_filter_register("myfilter","bar"));
20var_dump(stream_filter_register("foo","foo"));
21?>
22--EXPECT--
23bool(true)
24bool(false)
25bool(true)
26