Bug 234478 - devel/ioncube: Update to 10.3.1 (Fixes crash with PHP 7.1/7.2)
Summary: devel/ioncube: Update to 10.3.1 (Fixes crash with PHP 7.1/7.2)
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Tobias Kortkamp
Keywords: crash, needs-patch, needs-qa
Depends on:
Reported: 2018-12-28 21:57 UTC by Matt Simerson
Modified: 2018-12-31 05:49 UTC (History)
1 user (show)

See Also:
svyatoslav.lempert: maintainer-feedback+
tobik: merge-quarterly-

version bump to 10.3.1 (996 bytes, patch)
2018-12-28 22:01 UTC, Matt Simerson
no flags Details | Diff
ioncube-10.3.1-patch (1.38 KB, patch)
2018-12-31 02:24 UTC, Svyatoslav Lempert
svyatoslav.lempert: maintainer-approval+
Details | Diff
ioncube-10.3.1-patch (1.38 KB, patch)
2018-12-31 02:39 UTC, Svyatoslav Lempert
svyatoslav.lempert: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Simerson 2018-12-28 21:57:51 UTC
I ran into this issue today. After upgrading some PHP software from 7.0 (which is no longer in ports) to 7.1, and then 7.2, I was getting segmentation faults (SIGSEGV) when trying to load any PHP file.

Reverting to PHP 7.0 isn't possible (via ports/pkgs) so I tested reverting to PHP 5.6 and that restored functionality. But it's PHP 5.6, so I kept at it. Finally I checked the ioncube site and found that 10.3.1 is available with this note:

"28th Dec 2018 - Loader version 10.3.1, Fix for potential issue running code on PHP 7.1 and 7.2."

So I bumped the version in /usr/ports/devel/ioncube to 10.3.1, added these two lines to the distinfo file, installed the newer version, and it works!

SHA256 (ioncube/10.3.1/ioncube_loaders_fre_11_x86-64.tar.gz) = 26c5a3997138865128b53315c4edbcc2c9117cb1fd57d14747b01b109c949461
SIZE (ioncube/10.3.1/ioncube_loaders_fre_11_x86-64.tar.gz) = 12021094
Comment 1 Matt Simerson 2018-12-28 22:01:20 UTC
Created attachment 200591 [details]
version bump to 10.3.1
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2018-12-29 01:25:39 UTC
Thank you for the report Matt

Can you provide a link to the upstream PR/issue/commit(s) that address this issue?
Comment 3 Matt Simerson 2018-12-29 01:36:33 UTC
The closest public thing I've seen is: http://www.ioncube.com/news.php
Comment 4 Svyatoslav Lempert 2018-12-31 02:24:13 UTC
Created attachment 200638 [details]

- Update port to 10.3.1
Comment 5 Svyatoslav Lempert 2018-12-31 02:39:47 UTC
Created attachment 200639 [details]

update to 10.3.1
Comment 6 commit-hook freebsd_committer 2018-12-31 05:44:30 UTC
A commit references this bug:

Author: tobik
Date: Mon Dec 31 05:43:53 UTC 2018
New revision: 488756
URL: https://svnweb.freebsd.org/changeset/ports/488756

  devel/ioncube: Update to 10.3.1

  - Fix for potential crashes with PHP 7.1 and 7.2

  PR:		234478
  Reported by:	matt@tnpi.net
  Submitted by:	Svyatoslav Lempert <svyatoslav.lempert@gmail.com> (maintainer)