1--TEST--
2Bug #27822 (is_resource() returns TRUE for closed resources)
3--FILE--
4<?php
5	$f = fopen(__FILE__, 'r');
6	fclose($f);
7	var_dump(is_resource($f));
8?>
9--EXPECT--
10bool(false)
11