Skip to content

Bug: lzf extension PHP 8.4 fails (gzip: stdin: not in gzip format)Β #1017

Closed

Description

@michielroding

Describe the bug

Hi,

We're using your tool via github actions, and after migrating to PHP 8.4 installing the LZF extension fails with:

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
/home/runner/work/_actions/shivammathur/setup-php/v2/src/scripts/../scripts/extensions/source.sh: line 124: cd: /tmp/lzf-1.7.0: No such file or directory

Version

  • v2
  • v1

Runners

GitHub Hosted

Operating systems

Ubuntu 24.04

PHP versions

8.4

To Reproduce

name: PHP Composer & Unit tests

on:
  push:
    branches: [ master ]

env:
  GITHUB: 1

jobs:
  build:

    runs-on: ubuntu-24.04

    steps:
      - uses: actions/checkout@v3

      - name: Setup PHP
        uses: shivammathur/setup-php@v2
        with:
          php-version: 8.4
          extensions: mcrypt, ssh2, lzf

…

Expected behavior

At our previous version of php.yml, with the only change being the php-version: 8.3 it worked fine

Screenshots/Logs

Run shivammathur/setup-php@v2
/usr/bin/bash /home/runner/work/_actions/shivammathur/setup-php/v2/src/scripts/run.sh

==> Setup PHP
βœ“ PHP Installed PHP 8.4.13

==> Setup Extensions
βœ“ mcrypt Installed and enabled
βœ“ ssh2 Installed and enabled

==> Setup lzf-1.7.0

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
/home/runner/work/_actions/shivammathur/setup-php/v2/src/scripts/../scripts/extensions/source.sh: line 124: cd: /tmp/lzf-1.7.0: No such file or directory
βœ— lzf-1.7.0 Could not install lzf-1.7.0 on PHP 8.4.13
βœ— lzf Could not install lzf on PHP 8.4.13

==> Setup Tools
βœ“ composer Added composer 2.8.12

==> Sponsor setup-php
βœ“ setup-php https://setup-php.com/sponsor

Additional context

No response

Are you willing to submit a PR?

No

Activity

  1. michielroding commented on Oct 27, 2025

    @michielroding
    Author

    At 8.3:

    
    Run shivammathur/setup-php@v2
    /usr/bin/bash /home/runner/work/_actions/shivammathur/setup-php/v2/src/scripts/run.sh
    
    ==> Setup PHP
    βœ“ PHP Updated to PHP 8.3.26
    
    ==> Setup Extensions
    βœ“ mcrypt Installed and enabled
    βœ“ ssh2 Installed and enabled
    βœ“ lzf Installed and enabled
    
    ==> Setup Tools
    βœ“ composer Added composer 2.8.12
    
    ==> Sponsor setup-php
    βœ“ setup-php https://setup-php.com/sponsor
    
  2. shivammathur commented on Oct 27, 2025

    @shivammathur
    Owner

    Fixed in ae0a506
    Should be in the next release.

  3. shivammathur commented on Nov 26, 2025

    @shivammathur
    Owner

    Released the fix in 2.36.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions