summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2004-04-01 08:54:45 +0000
committerSVN Migration <svn@php.net>2004-04-01 08:54:45 +0000
commitd528916296cf621b71dae487f16a9c4af596c827 (patch)
treee0cfbd39d5d1fab168eb9fd2bb359c48bdf83e37
parent0cd7e114302871df4c46eef66a01032da1e05e0f (diff)
downloadphp-git-d528916296cf621b71dae487f16a9c4af596c827.tar.gz
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
-rw-r--r--ext/standard/tests/general_functions/is_resource.phpt10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/standard/tests/general_functions/is_resource.phpt b/ext/standard/tests/general_functions/is_resource.phpt
new file mode 100644
index 0000000000..d44461e442
--- /dev/null
+++ b/ext/standard/tests/general_functions/is_resource.phpt
@@ -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)