]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Thu, 1 Apr 2004 08:54:45 +0000 (08:54 +0000)
committerSVN Migration <svn@php.net>
Thu, 1 Apr 2004 08:54:45 +0000 (08:54 +0000)
ext/standard/tests/general_functions/is_resource.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/general_functions/is_resource.phpt b/ext/standard/tests/general_functions/is_resource.phpt
new file mode 100644 (file)
index 0000000..d44461e
--- /dev/null
@@ -0,0 +1,10 @@
+--TEST--
+Bug #27822: is_resource() returns TRUE for closed resources
+--FILE--
+<?php
+       $f = fopen(__FILE__, 'r');
+       fclose($f);
+       var_dump(is_resource($f));
+?>
+--EXPECT--
+bool(false)