Skip to content

[Intl] Emoji data is not compressed when using 'compress' binary #51029

Closed
@rlandgrebe

Description

@rlandgrebe

Symfony version(s) affected

6.3.1

Description

Compression of emoji data was introduced in Symfony 6.3 as per #50055.

When I try to compress the data by using the supplied compress tool (running php ./vendor/symfony/intl/Resources/bin/compress), all PHP files in the ./vendor/symfony/intl/Resources/data directory get compressed, except the data in ./vendor/symfony/intl/Resources/data/transliterator/emoji.

How to reproduce

Pre-Conditions

  • Intl package installed
  • Emoji data was not already compressed

Steps

  1. Run php ./vendor/symfony/intl/Resources/bin/compress in the project directory
  2. Go into the ./vendor/symfony/intl/Resources/data/currencies directory to make sure that the other files were gzipped
  3. Go into the ./vendor/symfony/intl/Resources/data/transliterator/emoji directory to verify that no PHP files were gzipped

Possible Solution

  • Move files in the emoji sub-directory up one directory to directly have them in the transliterator directory
  • Adjust the compress tool to traverse the data directory recursively to find PHP files also in subdirectories

Additional Context

Environments tested

  • Alpine Linux 3.18
  • macOS 13.4.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions