cataphract Mon, 15 Nov 2010 14:51:26 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=305371
Log: - Added test relative to the fix in rev #305346. Bug: http://bugs.php.net/305346 (error getting bug information) Changed paths: A php/php-src/trunk/ext/standard/tests/file/stream_enclosed.phpt Added: php/php-src/trunk/ext/standard/tests/file/stream_enclosed.phpt =================================================================== --- php/php-src/trunk/ext/standard/tests/file/stream_enclosed.phpt (rev 0) +++ php/php-src/trunk/ext/standard/tests/file/stream_enclosed.phpt 2010-11-15 14:51:26 UTC (rev 305371) @@ -0,0 +1,20 @@ +--TEST-- +Unexposed/leaked stream encloses another stream +--SKIPIF-- +<?php +if (!function_exists('leak_variable')) die("skip only debug builds"); +--FILE-- +<?php +$s = fopen('php://temp/maxmemory=1024','wb+'); + +$t = fopen('php://temp/maxmemory=1024','wb+'); + +/* force conversion of inner stream to STDIO. */ +$i = 0; +while ($i++ < 5000) { + fwrite($t, str_repeat('a',1024)); +} + +leak_variable($s, true); +leak_variable($t, true); +--EXPECT--
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php