summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-07-28 14:42:42 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-07-28 14:42:42 +0000
commitabe2afcf6e97c32ba7f84dae56f640d73108ec58 (patch)
treeef076b260fe6aaf4918c280575e063ff2250dc75
parent082f49a27b6b8f1ee5bcce79d836b6b8a6ceb726 (diff)
downloadphp-git-abe2afcf6e97c32ba7f84dae56f640d73108ec58.tar.gz
Make pclose() respect references.
-rw-r--r--ext/standard/file.c3
1 files changed, 2 insertions, 1 deletions
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));
}
/* }}} */