From: [EMAIL PROTECTED] Operating system: Irrelevant PHP version: Irrelevant PHP Bug Type: Filesystem function related Bug description: is_resource() returns true for closed resource handles
Description: ------------ is_resource() returns true even if the resource is already closed Reproduce code: --------------- php -r '$f=fopen("test","w");fclose($f);var_dump(is_resource($f));' Expected result: ---------------- bool(false) Actual result: -------------- bool(true) -- Edit bug report at http://bugs.php.net/?id=27822&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27822&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27822&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27822&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27822&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27822&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27822&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27822&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27822&r=support Expected behavior: http://bugs.php.net/fix.php?id=27822&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27822&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27822&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27822&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27822&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27822&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27822&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27822&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27822&r=float