xref: /PHP-8.4/ext/spl/tests/bug81691.phpt (revision 6bd01751)
1--TEST--
2Bug #81691 fclose on SplFileObject stream
3--FILE--
4<?php
5$obj = new SplFileObject(__FILE__);
6$resources = get_resources();
7fclose(end($resources));
8
9var_dump($obj->fgets());
10
11?>
12--EXPECTF--
13Warning: fclose(): %d is not a valid stream resource in %s on line %d
14string(6) "<?php
15"
16