Skip to content

4.4.0

Compare
Choose a tag to compare
@theofidry theofidry released this 11 Oct 20:44
· 249 commits to main since this release
b7e493d

This release comes with a special change. An internal piece of Box, Paragonie's Pharaoh, has been removed as a dependency. Its original code has been brought within the Box project and better integrated. This birthed a new class PharInfo which allows to provide a similar but richer API than Phar|PharData without its traditional problems. Thanks to this, the info and diff commands could be completely revamped.

TLDR: the biggest change is the diff command that can now be reliably be used to compare two PHARs.

Features

  • Prompt a question before removing the output directory when extracting a PHAR (#968)
  • No longer require phar.readonly to be off for using the extract command (#969)
  • Extract the PHAR API version and the normalized metadata when extracting a PHAR (#977)
  • Rework the diff command (#1039, #1040, #1043, #1045, #1051, #1052, #1053, #1055, #1056, #1057, #1058, #1059, #1062)
    • Show the PHAR signature in the PHAR diff command (#1042)
    • Introduce a --diff=diffMode option (#1044)
    • Correctly check the PHARs equality (#1049)
    • Improve the diff command output (#1054)
    • Change from filename to checksum as the default diff mode (#1060)
    • Colorize the archive diff (#1061)

Bugfixes

  • Fix the parsing of invalid PHPDoc (#943)
  • Fix the normalization of null metadata (#983)
  • Fix the file the PHAR file size shown when displaying a PHAR info (#987)
  • Fix the requirement checker Terminal getenv() usage (#999)

Misc