Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Aug 2016 18:13:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 211607] php56 5.6.24_1 - Default extension order causes segfault (imap + recode - need recode loaded first)
Message-ID:  <bug-211607-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211607

            Bug ID: 211607
           Summary: php56 5.6.24_1 - Default extension order causes
                    segfault (imap + recode - need recode loaded first)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: kithop@gmail.com

Overview: The new automatic include system in php56 5.6.24_1 for PHP extens=
ions
is great, but I'd like to request that one of the extensions be moved later=
 in
the load order, to prevent a conflict that causes a segfault when starting =
e.g.
php-fpm - 'recode' needs to come before 'imap'.

Steps to reproduce: When both 'imap' and 'recode' are enabled and installed,
along with a service like php-fpm, php-fpm will segfault on startup ('exite=
d on
signal 11 (core dumped)').

Actual result: % sudo /usr/local/etc/rc.d/php-fpm restart=20=20=20
Performing sanity check on php-fpm configuration:
Segmentation fault (core dumped)

Expected result: Proper service startup

Build Date & Hardware: php56 5.6.24_1 with both 'IMAP' and 'Recode' extensi=
ons
/ sub-ports enabled, php-fpm on FreeBSD 10.3-RELEASE-p6, amd64

Suggested Fix: Check if both 'imap' and 'recode' are enabled, and rename
/usr/local/etc/php/ext-20-imap.ini to e.g. /usr/local/etc/php/ext-30-imap.i=
ni
so it loads after /usr/local/etc/php/ext-20-recode.ini - Tested, and this
successfully works around the issue.

Thanks!

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211607-13>