From 7297a2b02e0cfb3e8b6ed94d73ae757583cac529 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sun, 27 Jul 2003 18:46:03 +0000 Subject: [PATCH] MFH: Fixed bug #24557 (make fclose() respect refcount on the resource). --- NEWS | 2 ++ ext/standard/file.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 6307f36add..044e385392 100644 --- a/NEWS +++ b/NEWS @@ -34,6 +34,8 @@ PHP 4 NEWS - Fixed bug #24573 (debug_backtrace() crashes if $this set to null). (Jani) - Fixed bug #24560 (parse_url() incorrectly handling certain file:// based schemas). (Ilia) +- Fixed bug #24557 (make fclose() respect refcount on the resource). + (Wez, Ilia) - Fixed bug #24537 (apache2 compile misses some include directories). (Jani) - Fixed bug #24535 (ext/mysql: crash when retrieving data from unbuffered result after the original connection has been changed). (Ilia) diff --git a/ext/standard/file.c b/ext/standard/file.c index 334fcc1855..6a09e29dc3 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1156,7 +1156,7 @@ PHPAPI PHP_FUNCTION(fclose) } php_stream_from_zval(stream, arg1); - php_stream_close(stream); + zend_list_delete(stream->rsrc_id); RETURN_TRUE; } -- 2.40.0