Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ioncube error using php 8.1 #840

Closed
2 of 5 tasks
mauro-nigrele-wpromote opened this issue May 6, 2024 · 4 comments
Closed
2 of 5 tasks

Ioncube error using php 8.1 #840

mauro-nigrele-wpromote opened this issue May 6, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@mauro-nigrele-wpromote
Copy link

mauro-nigrele-wpromote commented May 6, 2024

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

Version

  • I have checked releases, and the bug exists in the latest patch version of v1 or v2.
  • v2
  • v1

Runners

  • GitHub Hosted
  • Self Hosted

Operating systems

Default . Not specified (linux I guess)

PHP versions
8.1

To Reproduce
`
steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow

  -   name: Load php 8.1
      uses: shivammathur/setup-php@v2
      with:
        php-version: '8.1'
        extensions: ioncube
      env:
        fail-fast: true

`
Expected behavior
PHP 8.1 with IonCube Loader is installed

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.2[7](https://github.com/visiture-dev/lee-michaels/actions/runs/8971980259/job/24638933460#step:6:7)
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
Copy link
Author

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
Copy link
Owner

Fixed in 376a964, will be in the next release.

@shivammathur shivammathur added the awaiting-release Added/Fixed and tested, awaiting release label May 22, 2024
@shivammathur
Copy link
Owner

@shivammathur shivammathur removed the awaiting-release Added/Fixed and tested, awaiting release label Jun 3, 2024
@mauro-nigrele-wpromote
Copy link
Author

Awesome!!! thanks great job @shivammathur

cuixq added a commit to google/osv-scanner that referenced this issue Jul 2, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [actions/checkout](https://github.com/actions/checkout) | action |
patch | `v4.1.1` -> `v4.1.7` |
| [actions/setup-go](https://github.com/actions/setup-go) | action |
patch | `v5.0.0` -> `v5.0.1` |
| [github/codeql-action](https://github.com/github/codeql-action) |
action | patch | `v3.25.10` -> `v3.25.11` |
| [r-lib/actions](https://github.com/r-lib/actions) | action | minor |
`v2.8.7` -> `v2.9.0` |
| [ruby/setup-ruby](https://github.com/ruby/setup-ruby) | action |
minor | `v1.175.1` -> `v1.183.0` |
| [shivammathur/setup-php](https://github.com/shivammathur/setup-php)
| action | minor | `v2.30.4` -> `2.31.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>actions/checkout (actions/checkout)</summary>

###
[`v4.1.7`](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v417)

[Compare
Source](https://github.com/actions/checkout/compare/v4.1.6...v4.1.7)

- Bump the minor-npm-dependencies group across 1 directory with 4
updates by [@&#8203;dependabot](https://github.com/dependabot) in
[actions/checkout#1739
- Bump actions/checkout from 3 to 4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[actions/checkout#1697
- Check out other refs/\* by commit by
[@&#8203;orhantoy](https://github.com/orhantoy) in
[actions/checkout#1774
- Pin actions/checkout's own workflows to a known, good, stable version.
by [@&#8203;jww3](https://github.com/jww3) in
[actions/checkout#1776

###
[`v4.1.6`](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v416)

[Compare
Source](https://github.com/actions/checkout/compare/v4.1.5...v4.1.6)

- Check platform to set archive extension appropriately by
[@&#8203;cory-miller](https://github.com/cory-miller) in
[actions/checkout#1732

###
[`v4.1.5`](https://github.com/actions/checkout/releases/tag/v4.1.5)

[Compare
Source](https://github.com/actions/checkout/compare/v4.1.4...v4.1.5)

#### What's Changed

- Update NPM dependencies by
[@&#8203;cory-miller](https://github.com/cory-miller) in
[actions/checkout#1703
- Bump github/codeql-action from 2 to 3 by
[@&#8203;dependabot](https://github.com/dependabot) in
[actions/checkout#1694
- Bump actions/setup-node from 1 to 4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[actions/checkout#1696
- Bump actions/upload-artifact from 2 to 4 by
[@&#8203;dependabot](https://github.com/dependabot) in
[actions/checkout#1695
- README: Suggest `user.email` to be
`41898282+github-actions[bot]@&#8203;users.noreply.github.com` by
[@&#8203;cory-miller](https://github.com/cory-miller) in
[actions/checkout#1707

**Full Changelog**:
actions/checkout@v4.1.4...v4.1.5

###
[`v4.1.4`](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v414)

[Compare
Source](https://github.com/actions/checkout/compare/v4.1.3...v4.1.4)

- Disable `extensions.worktreeConfig` when disabling `sparse-checkout`
by [@&#8203;jww3](https://github.com/jww3) in
[actions/checkout#1692
- Add dependabot config by
[@&#8203;cory-miller](https://github.com/cory-miller) in
[actions/checkout#1688
- Bump the minor-actions-dependencies group with 2 updates by
[@&#8203;dependabot](https://github.com/dependabot) in
[actions/checkout#1693
- Bump word-wrap from 1.2.3 to 1.2.5 by
[@&#8203;dependabot](https://github.com/dependabot) in
[actions/checkout#1643

###
[`v4.1.3`](https://github.com/actions/checkout/releases/tag/v4.1.3)

[Compare
Source](https://github.com/actions/checkout/compare/v4.1.2...v4.1.3)

#### What's Changed

- Update `actions/checkout` version in `update-main-version.yml` by
[@&#8203;jww3](https://github.com/jww3) in
[actions/checkout#1650
- Check git version before attempting to disable `sparse-checkout` by
[@&#8203;jww3](https://github.com/jww3) in
[actions/checkout#1656
- Add SSH user parameter by
[@&#8203;cory-miller](https://github.com/cory-miller) in
[actions/checkout#1685

**Full Changelog**:
actions/checkout@v4.1.2...v4.1.3

###
[`v4.1.2`](https://github.com/actions/checkout/blob/HEAD/CHANGELOG.md#v412)

[Compare
Source](https://github.com/actions/checkout/compare/v4.1.1...v4.1.2)

- Fix: Disable sparse checkout whenever `sparse-checkout` option is not
present [@&#8203;dscho](https://github.com/dscho) in
[actions/checkout#1598

</details>

<details>
<summary>actions/setup-go (actions/setup-go)</summary>

###
[`v5.0.1`](https://github.com/actions/setup-go/releases/tag/v5.0.1)

[Compare
Source](https://github.com/actions/setup-go/compare/v5.0.0...v5.0.1)

#### What's Changed

- Bump undici from 5.28.2 to 5.28.3 and dependencies upgrade by
[@&#8203;dependabot](https://github.com/dependabot) ,
[@&#8203;HarithaVattikuti](https://github.com/HarithaVattikuti) in
[actions/setup-go#465
- Update documentation with latest V5 release notes by
[@&#8203;ab](https://github.com/ab) in
[actions/setup-go#459
- Update version documentation by
[@&#8203;178inaba](https://github.com/178inaba) in
[actions/setup-go#458
- Documentation update of `actions/setup-go` to v5 by
[@&#8203;chenrui333](https://github.com/chenrui333) in
[actions/setup-go#449

#### New Contributors

- [@&#8203;ab](https://github.com/ab) made their first contribution in
[actions/setup-go#459

**Full Changelog**:
actions/setup-go@v5.0.0...v5.0.1

</details>

<details>
<summary>github/codeql-action (github/codeql-action)</summary>

###
[`v3.25.11`](https://github.com/github/codeql-action/compare/v3.25.10...v3.25.11)

[Compare
Source](https://github.com/github/codeql-action/compare/v3.25.10...v3.25.11)

</details>

<details>
<summary>r-lib/actions (r-lib/actions)</summary>

###
[`v2.9.0`](https://github.com/r-lib/actions/compare/v2.8.7...v2.9.0)

[Compare
Source](https://github.com/r-lib/actions/compare/v2.8.7...v2.9.0)

</details>

<details>
<summary>ruby/setup-ruby (ruby/setup-ruby)</summary>

###
[`v1.183.0`](https://github.com/ruby/setup-ruby/releases/tag/v1.183.0)

[Compare
Source](https://github.com/ruby/setup-ruby/compare/v1.182.0...v1.183.0)

**Full Changelog**:
ruby/setup-ruby@v1.182.0...v1.183.0

###
[`v1.182.0`](https://github.com/ruby/setup-ruby/releases/tag/v1.182.0)

[Compare
Source](https://github.com/ruby/setup-ruby/compare/v1.181.0...v1.182.0)

**Full Changelog**:
ruby/setup-ruby@v1.181.0...v1.182.0

###
[`v1.181.0`](https://github.com/ruby/setup-ruby/releases/tag/v1.181.0)

[Compare
Source](https://github.com/ruby/setup-ruby/compare/v1.180.1...v1.181.0)

##### What's Changed

- Add jruby-9.3.15.0 by
[@&#8203;ruby-builder-bot](https://github.com/ruby-builder-bot) in
[ruby/setup-ruby#614

**Full Changelog**:
ruby/setup-ruby@v1.180.1...v1.181.0

###
[`v1.180.1`](https://github.com/ruby/setup-ruby/releases/tag/v1.180.1):
Add ruby-3.3.3 on Windows

[Compare
Source](https://github.com/ruby/setup-ruby/compare/v1.180.0...v1.180.1)

###
[`v1.180.0`](https://github.com/ruby/setup-ruby/releases/tag/v1.180.0):
Add ruby-3.3.3

[Compare
Source](https://github.com/ruby/setup-ruby/compare/v1.179.1...v1.180.0)

###
[`v1.179.1`](https://github.com/ruby/setup-ruby/releases/tag/v1.179.1):
Improve error message for CRuby &lt; 2.6 on macos-arm64

[Compare
Source](https://github.com/ruby/setup-ruby/compare/v1.179.0...v1.179.1)

###
[`v1.179.0`](https://github.com/ruby/setup-ruby/releases/tag/v1.179.0):
Add ruby-3.1.6,ruby-3.3.2 on Windows

[Compare
Source](https://github.com/ruby/setup-ruby/compare/v1.178.0...v1.179.0)

#### What's Changed

- Update CRuby releases on Windows by
[@&#8203;ruby-builder-bot](https://github.com/ruby-builder-bot) in
[ruby/setup-ruby#605

**Full Changelog**:
ruby/setup-ruby@v1.178.0...v1.179.0

###
[`v1.178.0`](https://github.com/ruby/setup-ruby/releases/tag/v1.178.0):
Add ruby-3.1.6,ruby-3.3.2 and improve error messages

[Compare
Source](https://github.com/ruby/setup-ruby/compare/v1.177.1...v1.178.0)

#### What's Changed

- Add ruby-3.1.6,ruby-3.3.2 by
[@&#8203;ruby-builder-bot](https://github.com/ruby-builder-bot) in
[ruby/setup-ruby#603

**Full Changelog**:
ruby/setup-ruby@v1.177.1...v1.178.0

###
[`v1.177.1`](https://github.com/ruby/setup-ruby/releases/tag/v1.177.1):
Use downloadAndExtract() for truffleruby+graalvm too

[Compare
Source](https://github.com/ruby/setup-ruby/compare/v1.177.0...v1.177.1)

###
[`v1.177.0`](https://github.com/ruby/setup-ruby/releases/tag/v1.177.0):
Add support for ubuntu-24.04

[Compare
Source](https://github.com/ruby/setup-ruby/compare/v1.176.2...v1.177.0)

###
[`v1.176.2`](https://github.com/ruby/setup-ruby/releases/tag/v1.176.2):
Add ruby-3.4.0-preview1

[Compare
Source](https://github.com/ruby/setup-ruby/compare/v1.176.0...v1.176.2)

###
[`v1.176.0`](https://github.com/ruby/setup-ruby/releases/tag/v1.176.0):
Add jruby-9.4.7.0

[Compare
Source](https://github.com/ruby/setup-ruby/compare/v1.175.1...v1.176.0)

</details>

<details>
<summary>shivammathur/setup-php (shivammathur/setup-php)</summary>

###
[`v2.31.0`](https://github.com/shivammathur/setup-php/releases/tag/2.31.0)

[Compare
Source](https://github.com/shivammathur/setup-php/compare/2.30.5...2.31.0)

##### Changelog

- Added support for a fallback mirror for `ondrej/php` PPA when
launchpad is down
([#&#8203;834](https://github.com/shivammathur/setup-php/issues/834)).

- Fixed installing packages on self-hosted environments with existing
conf files
([#&#8203;852](https://github.com/shivammathur/setup-php/issues/852)).

-   Fixed support for `oci8` and `pdo_oci` extensions on `ubuntu-24.04`.

-   Fixed support for `couchbase` extension on `ubuntu-24.04`.

- Fixed support for `ubuntu-24.04` after `apt-fast` was dropped from the
GA images.

-   Fixed support for `firebird` extension on `macos-14`

-   Fixed support for `blackfire` extension on `macos-14`.

-   Fixed support for `relay` extension.

-   Fixed support for `phalcon` extension for PHP 7.4 on Ubuntu.

-   Updated Node.js dependencies.

For the complete list of changes, please refer to the [Full
Changelog](https://github.com/shivammathur/setup-php/compare/2.30.5...2.31.0)

<p>
  <h4>Follow for updates</h4>
<a href="https://reddit.com/r/setup_php" title="setup-php reddit"><img
alt="setup-php reddit"
src="https://img.shields.io/badge/reddit-join-FF5700?logo=reddit&logoColor=FF5700&labelColor=555555"></a>
<a href="https://twitter.com/setup_php" title="setup-php twitter"><img
alt="setup-php twitter"
src="https://img.shields.io/badge/twitter-follow-1DA1F2?logo=twitter&logoColor=1DA1F2&labelColor=555555"></a>
<a href="https://status.setup-php.com" title="setup-php status"><img
alt="setup-php status"
src="https://img.shields.io/badge/status-subscribe-28A745?logo=statuspage&logoColor=28A745&labelColor=555555"></a>
</p>

###
[`v2.30.5`](https://github.com/shivammathur/setup-php/releases/tag/2.30.5)

[Compare
Source](https://github.com/shivammathur/setup-php/compare/2.30.4...2.30.5)

##### Changelog

-   Added support for Ubuntu 24.04.

- Added support for `easy-coding-standard` in tools
([shivammathur/setup-php#838)

-   Added support for zephir_parser for PHP 8.3.

- Fixed installing zts PHP versions on macOS
([shivammathur/setup-php#847).

- Fixed installing `ev` extension
([shivammathur/setup-php#844).

- Fixed support for `ioncube` extension
([shivammathur/setup-php#840).

-   Updated Node.js dependencies.

For the complete list of changes, please refer to the [Full
Changelog](https://github.com/shivammathur/setup-php/compare/2.30.4...2.30.5)

<p>
  <h4>Follow for updates</h4>
<a href="https://reddit.com/r/setup_php" title="setup-php reddit"><img
alt="setup-php reddit"
src="https://img.shields.io/badge/reddit-join-FF5700?logo=reddit&logoColor=FF5700&labelColor=555555"></a>
<a href="https://twitter.com/setup_php" title="setup-php twitter"><img
alt="setup-php twitter"
src="https://img.shields.io/badge/twitter-follow-1DA1F2?logo=twitter&logoColor=1DA1F2&labelColor=555555"></a>
<a href="https://status.setup-php.com" title="setup-php status"><img
alt="setup-php status"
src="https://img.shields.io/badge/status-subscribe-28A745?logo=statuspage&logoColor=28A745&labelColor=555555"></a>
</p>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 6am on monday" in timezone
Australia/Sydney, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/google/osv-scanner).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjEuMCIsInVwZGF0ZWRJblZlciI6IjM3LjQyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiXX0=-->

Co-authored-by: Xueqin Cui <72771658+cuixq@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants