Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #59467


Ignore:
Timestamp:
09/26/2023 09:25:46 PM (21 months ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59467 – Description

    initial v2  
    1111As this function is used during installation and upgrade processes which are memory-intensive, let's free the archive before each of the `return` statements, rather than waiting until the end of the script.
    1212
    13 Note: The `return` that gets used as a result of `true !== $zopen` does not need a call to `$z-close()`, as freeing the archive is [https://github.com/nih-at/libzip/blob/main/lib/zip_open.c#L62-L73 handled internally] by libzip's `zip_open()`.
     13Note: The `return` that gets used as a result of `true !== $zopen` does not need a call to `$z->close()`, as freeing the archive is [https://github.com/nih-at/libzip/blob/main/lib/zip_open.c#L62-L73 handled internally] by libzip's `zip_open()`.
    1414
    1515-----