#27822 [NEW]: is_resource() returns true for closed resource handles

From: Date: Thu, 01 Apr 2004 08:43:12 +0000
Subject: #27822 [NEW]: is_resource() returns true for closed resource handles
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-57301@lists.php.net to get a copy of this message
From: mike@php.net 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

« previous php.bugs (#57301) next »