Annotation of embedaddon/php/ext/standard/tests/file/fclose_variation1.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: fclose() actually closes streams with refcount > 1
3: --FILE--
4: <?php
5: $s = fopen(__FILE__, "rb");
6: function separate_zval(&$var) { }
7: $s2 = $s;
8: separate_zval($s2);
9: fclose($s);
10: echo fread($s2, strlen("<?php"));
11: echo "\nDone.\n";
12: --EXPECTF--
13: Warning: fread(): %d is not a valid stream resource in %s on line %d
14:
15: Done.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>