From cd4a281364a50b94b8fbfd131e51bdf54f853254 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sun, 27 Jul 2003 18:45:02 +0000 Subject: [PATCH] Fixed bug #24557 (make fclose() respect refcount on the resource). --- ext/standard/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/file.c b/ext/standard/file.c index 587dccbebd..32d37e8be4 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -763,7 +763,7 @@ PHPAPI PHP_FUNCTION(fclose) } php_stream_from_zval(stream, arg1); - php_stream_close(stream); + zend_list_delete(stream->rsrc_id); RETURN_TRUE; } -- 2.50.1