From ba533a91c4d79f4fa273b00b7f9e6bf717dc1526 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 28 Jul 2003 14:42:56 +0000 Subject: [PATCH] MFH: Make pclose() respect references. --- ext/standard/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); } /* }}} */ -- 2.50.1