From: Ilia Alshanetsky Date: Mon, 28 Jul 2003 14:42:56 +0000 (+0000) Subject: MFH: Make pclose() respect references. X-Git-Tag: php-4.3.3RC2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba533a91c4d79f4fa273b00b7f9e6bf717dc1526;p=php MFH: Make pclose() respect references. --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 6a09e29dc3..96476b5b37 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1242,7 +1242,8 @@ PHP_FUNCTION(pclose) php_stream_from_zval(stream, arg1); - RETURN_LONG(php_stream_close(stream)); + zend_list_delete(stream->rsrc_id); + RETURN_LONG(FG(pclose_ret)); } /* }}} */