]> granicus.if.org Git - php/commitdiff
MFH: Make pclose() respect references.
authorIlia Alshanetsky <iliaa@php.net>
Mon, 28 Jul 2003 14:42:56 +0000 (14:42 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 28 Jul 2003 14:42:56 +0000 (14:42 +0000)
ext/standard/file.c

index 6a09e29dc39b86ee4e7d26bc4c920912792e6e01..96476b5b37e85a9c22123160eac6dd792d63c058 100644 (file)
@@ -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));
 }
 /* }}} */