From: Ilia Alshanetsky Date: Sun, 27 Jul 2003 18:46:03 +0000 (+0000) Subject: MFH: Fixed bug #24557 (make fclose() respect refcount on the resource). X-Git-Tag: php-4.3.3RC2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7297a2b02e0cfb3e8b6ed94d73ae757583cac529;p=php MFH: Fixed bug #24557 (make fclose() respect refcount on the resource). --- 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; }