We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cc45f1 commit 9a276a0Copy full SHA for 9a276a0
ext/phar/util.c
@@ -709,7 +709,8 @@ static inline void phar_set_pharfp(phar_archive_data *phar, php_stream *fp)
709
PHAR_G(cached_fp)[phar->phar_pos].fp = fp;
710
}
711
712
-/* initialize a phar_archive_data's read-only fp for existing phar data */
+/* Initialize a phar_archive_data's read-only fp for existing phar data.
713
+ * The stream is owned by the `phar` object and must not be closed manually. */
714
php_stream *phar_open_archive_fp(phar_archive_data *phar) /* {{{ */
715
{
716
php_stream *stream = phar_get_pharfp(phar);
0 commit comments