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

index 32d37e8be4f76d3fbf3763837772425bda5e4dbc..e99be2e0c63b3b1d9815e1e6286f8add256f6d33 100644 (file)
@@ -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));
 }
 /* }}} */