--TEST-- Bug #78902: Memory leak when using stream_filter_append --INI-- memory_limit=2M --FILE-- 0) { fputs($fp, str_pad('', min($chunk,$size))); $size -= $chunk; } fclose($fp); $fp = fopen($tmp_file_name, 'r'); stream_filter_append($fp, "string.toupper"); while (!feof($fp)) { fread($fp, 1); } fclose($fp); var_dump(true); ?> --EXPECT-- bool(true)