Annotation of embedaddon/php/ext/standard/tests/general_functions/is_resource.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug #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--
                     10: bool(false)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>