1--TEST--
2Unexposed/leaked stream encloses another stream
3--EXTENSIONS--
4zend_test
5--FILE--
6<?php
7$s = fopen('php://temp/maxmemory=1024','wb+');
8
9$t = fopen('php://temp/maxmemory=1024','wb+');
10
11/* force conversion of inner stream to STDIO. */
12$i = 0;
13while ($i++ < 5000) {
14    fwrite($t, str_repeat('a',1024));
15}
16
17zend_leak_variable($s);
18zend_leak_variable($t);
19?>
20--EXPECT--
21