Skip to content

Releases

1.5.4: se7enxweb/expcomponents-archive, Exponential's fork of Zeta Components Archive

Choose a tag to compare

@se7enxweb se7enxweb released this 25 Nov 09:18

se7enxweb/expcomponents-archive 1.5.4 is Exponential's fork of Zeta Components Archive. Install: composer require se7enxweb/expcomponents-archive:~1.5.4

Changes

  • Fixed: The GNU tar reader no longer loops forever on unknown header types
    (pull request #1).

  • Fixed: GNU long names whose size is a multiple of 512 are read correctly
    (pull request #2).

  • Fixed: Tar extension headers are limited in size and checked for truncation
    (pull request #3).

  • Fixed: An empty GNU long name or link no longer replaces the header's name
    (pull request #4).

  • Fixed: PAX extended headers are read completely and strictly
    (pull request #5), and the GNU tar reader applies them (pull request #6).

  • Fixed: Extracting refuses entries that would be written outside the target
    directory (path traversal through "..", absolute paths or symbolic links)
    (pull request #7).

  • Fixed: Extracting no longer applies setuid, setgid and sticky bits
    (pull request #8).

    BEHAVIOUR CHANGE: a malformed or hostile archive (an unknown or truncated
    header, an oversized extension header, an invalid PAX record, an entry that
    would land outside the target) now throws an ezcArchive exception where it
    was read or extracted silently, wrongly, or looped. Callers that open
    archives from untrusted sources (package imports, uploads) should catch
    ezcArchiveException and report it. Extracted files keep their permission
    bits without setuid, setgid and sticky.

Verified

Test suite on PHP 7.4, 8.0 and 8.5 on the node: 352 tests, the only failures are 24 append tests that fail as root and fail the same on 1.5.3; GitHub Actions matrix green on the release commit.

1.5.3: se7enxweb/expcomponents-archive, Exponential's fork of Zeta Components Archive

Choose a tag to compare

@se7enxweb se7enxweb released this 07 Nov 05:03

se7enxweb/expcomponents-archive 1.5.3 is Exponential's fork of Zeta Components Archive (zetacomponents/archive), maintained by 7x and the Exponential Foundation under the Apache License 2.0. It replaces zetacomponents/archive; the class names (ezc*) and the API are unchanged.

Install: composer require se7enxweb/expcomponents-archive:~1.5.3

Changes

  • Updated: Requirements on other Zeta Components point to their Exponential
    forks (se7enxweb/expcomponents-base), which replace the upstream packages.
  • Updated: composer.json states the license (Apache-2.0) and the PHP
    versions; the component is tested on PHP 7.4 to 8.5.
  • Added: NOTICE keeps the upstream copyright notices and names the fork;
    README.md describes the fork.

1.5.2: PHP 7.4 to 8.5 without deprecations, published as se7enxweb/expcomponents-archive

Choose a tag to compare

@se7enxweb se7enxweb released this 03 Nov 11:35
  • Renamed: The package is now se7enxweb/expcomponents-archive (repository
    github.com/se7enxweb/expcomponents-archive), a maintained fork of
    zetacomponents/Archive. It replaces zetacomponents/archive, so existing
    requirements keep working; the class names (ezcArchive*) are unchanged.
  • Fixed: No deprecation notices on PHP 8.1 to 8.5. Parameters with a null
    default are explicitly nullable, the Iterator methods carry
    #[\ReturnTypeWillChange], and ezcArchiveEntry no longer passes null to
    substr(), strlen() or strcmp() for an entry without a link.
  • Fixed: Reading a tar header no longer passes space or NUL padding to
    octdec() (deprecated since PHP 7.4); the decoded values are the same.
  • Fixed: The CRC-32 table used for Zip archives is built as an array from
    the start, instead of turning false into an array (deprecated since
    PHP 8.1). An error handler that throws on deprecations left the table
    incomplete, with "Undefined array key" warnings after it.
  • Fixed: Long file names and long link names in GNU tar archives no longer
    keep the terminating NUL byte, so such entries extract again (PHP 8 refused
    the name with a ValueError, PHP 7 could not find the link target).
  • Fixed: Appending to a ustar archive no longer raises a notice when the
    file's user or group ID has no entry in the user or group database; the
    name is written empty, as before.
  • Added: A test that loads every class in a fresh process and fails on any
    deprecation, and a GitHub Actions workflow running the suite on PHP 7.4
    to 8.5.

1.5.1 - Thursday 23 February 2023
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  • Removed an unused line which generates an error in PHP 7.2.
  • PHP 8.2 and PHPUnit 9 support.