1--TEST--
2Include fails during read
3--FILE--
4<?php
5class SampleFilter extends php_user_filter { }
6stream_filter_register('sample.filter', SampleFilter::class);
7include 'php://filter/read=sample.filter/resource='. __FILE__;
8?>
9--EXPECTF--
10Warning: include(): Unprocessed filter buckets remaining on input brigade in %s on line %d
11
12Warning: include(): Failed opening 'php://filter/read=sample.filter/resource=%s' for inclusion (include_path='%s') in %s on line %d
13