#27822 [Asn->Csd]: is_resource() returns true for closed resource handles
| From: | derick@php.net | Date: | Thu, 01 Apr 2004 08:47:05 +0000 |
| Subject: | #27822 [Asn->Csd]: is_resource() returns true for closed resource handles | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-57303@lists.php.net to get a copy of this message | ||
ID: 27822
Updated by: derick@php.net
Reported By: mike@php.net
-Status: Assigned
+Status: Closed
Bug Type: Filesystem function related
Operating System: Irrelevant
PHP Version: Irrelevant
Assigned To: derick
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-04-01 03:43:12] mike@php.net
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 this bug report at http://bugs.php.net/?id=27822&edit=1