xref: /PHP-8.2/Zend/tests/bug68887.phpt (revision 4d9a1883)
1--TEST--
2Bug #68887 (resources are not freed correctly)
3--FILE--
4<?php
5fclose(fopen("php://temp","w+"));
6$count = count(get_resources());
7fclose(fopen("php://temp","w+"));
8var_dump(count(get_resources()) == $count);
9fclose(fopen("php://temp","w+"));
10var_dump(count(get_resources()) == $count);
11?>
12--EXPECT--
13bool(true)
14bool(true)
15