shivammathur / setup-php

GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.
https://setup-php.com
MIT License
2.85k stars 334 forks source link

Ioncube error using php 8.1 #840

Closed mauro-nigrele-wpromote closed 1 month ago

mauro-nigrele-wpromote commented 2 months ago

Describe the bug Can't get Ioncube loader installed properly with PHP 8.1

Version

Runners

Operating systems

Default . Not specified (linux I guess)

PHP versions 8.1

To Reproduce ` steps:

Screenshots/Logs

Run shivammathur/setup-php@v2
  with:
    php-version: 8.1
    extensions: ioncube
    ini-file: production
  env:
    WEBROOT_PATH: /home/xxxx/xxxx-11
    REMOTE_HOME: /home/xxxx/
    fail-fast: true
/usr/bin/bash /home/runner/work/_actions/shivammathur/setup-php/v[2](https://github.com/visiture-dev/lee-michaels/actions/runs/8971980259/job/24638933460#step:6:2)/src/scripts/run.sh

==> Setup PHP ✓ PHP Updated to PHP 8.1.27

==> Setup Extensions ✗ ioncube Could not install ioncube on PHP 8.1.27 Error: The process '/usr/bin/bash' failed with exit code 1`

Additional context N/A

Are you willing to submit a PR? N/A

mauro-nigrele-wpromote commented 2 months ago

Updated Error log with verbose flag


Run shivammathur/setup-php@verbose
/usr/bin/bash /home/runner/work/_actions/shivammathur/setup-php/verbose/src/scripts/run.sh
==> Setup PHP
update-alternatives: using /usr/sbin/php-fpm8.1 to provide /usr/sbin/php-fpm (php-fpm) in auto mode
Reading package lists...
Building dependency tree...
Reading state information...
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 odbcinst : Depends: unixodbc-common (>= 2.3.9-5ubuntu0.1) but 2.3.9-5 is installed
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
Correcting dependencies... Done
The following additional packages will be installed:
  unixodbc-common
The following packages will be upgraded:
  unixodbc-common
1 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
Need to get 9256 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B]
Get:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 unixodbc-common all 2.3.9-5ubuntu0.1 [9256 B]
Fetched 9256 B in 0s (131 kB/s)
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 269688 files and directories currently installed.)
Preparing to unpack .../unixodbc-common_2.3.9-5ubuntu0.1_all.deb ...
Unpacking unixodbc-common (2.3.9-5ubuntu0.1) over (2.3.9-5) ...
Setting up unixodbc-common (2.3.9-5ubuntu0.1) ...
NEEDRESTART-VER: 3.5
NEEDRESTART-KCUR: 6.5.0-1018-azure
NEEDRESTART-KEXP: 6.5.0-1018-azure
NEEDRESTART-KSTA: 1
NEEDRESTART-SVC: irqbalance.service
NEEDRESTART-SVC: networkd-dispatcher.service
NEEDRESTART-SVC: php8.1-fpm.service
production
date.timezone=UTC
memory_limit=-1
xdebug.mode=coverage
opcache.enable=1
opcache.jit_buffer_size=256M
opcache.jit=[12](https://github.com/visiture-dev/lee-michaels/actions/runs/8974349000/job/24646535373#step:6:13)35
php-version=8.1.27
✓ PHP Updated to PHP 8.1.27
==> Setup Extensions
ID=ubuntu
VERSION_ID=***.04
VERSION_CODENAME=jammy
deb [arch=amd64 signed-by=/usr/share/keyrings/ondrej-php-keyring.gpg] http://ppa.launchpad.net/ondrej/php/ubuntu jammy main
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu jammy InRelease [23.9 kB]
Get:2 http://ppa.launchpad.net/ondrej/php/ubuntu jammy/main amd64 Packages [123 kB]
Get:3 http://ppa.launchpad.net/ondrej/php/ubuntu jammy/main Translation-en [37.9 kB]
Fetched [18](https://github.com/visiture-dev/lee-michaels/actions/runs/8974349000/job/24646535373#step:6:19)5 kB in 1s (***7 kB/s)
Reading package lists...
✓ xml Enabled
✓ php-config Added php-config 8.1.27
Updating channel "pear.php.net"
Update of Channel "pear.php.net" succeeded
Updating channel "pecl.php.net"
Update of Channel "pecl.php.net" succeeded
✓ PECL Added PECL 1.10.12
No releases available for package "pecl.php.net/ioncube"
install failed
✗ ioncube Could not install ioncube on PHP 8.1.[27](https://github.com/visiture-dev/lee-michaels/actions/runs/8974349000/job/24646535373#step:6:28)
Error: The process '/usr/bin/bash' failed with exit code 1
shivammathur commented 2 months ago

Fixed in https://github.com/shivammathur/setup-php/commit/376a964e21bb185c4aa056d6683e0d042ed9af62, will be in the next release.

shivammathur commented 1 month ago

Released https://github.com/shivammathur/setup-php/releases/tag/2.30.5 with the fix

mauro-nigrele-wpromote commented 1 month ago

Awesome!!! thanks great job @shivammathur