From abe2afcf6e97c32ba7f84dae56f640d73108ec58 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 28 Jul 2003 14:42:42 +0000 Subject: [PATCH] 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 32d37e8be4..e99be2e0c6 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -849,7 +849,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