diff options
author | Alex Dupre <ale@FreeBSD.org> | 2007-02-16 08:53:33 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2007-02-16 08:53:33 +0000 |
commit | 67c1c8ae7f9094ea0f9e79b49db8b61eb49412b8 (patch) | |
tree | 9aa5a5d58687f12dfef4b9322b71bdf5bbd8be41 /Mk/bsd.php.mk | |
parent | - Update to 3.1.8 (diff) |
Fix segmentation fault on unloading, by loading php extensions in
reversal alphabetical order.
Notes
Notes:
svn path=/head/; revision=185293
Diffstat (limited to 'Mk/bsd.php.mk')
-rw-r--r-- | Mk/bsd.php.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/bsd.php.mk b/Mk/bsd.php.mk index 90b70257781f..0d6d28ffbcbd 100644 --- a/Mk/bsd.php.mk +++ b/Mk/bsd.php.mk @@ -177,6 +177,8 @@ do-install: @${MKDIR} ${PREFIX}/etc/php @${ECHO_CMD} extension=${PHP_MODNAME}.so \ >> ${PREFIX}/etc/php/extensions.ini + @${SORT} -ruo ${PREFIX}/etc/php/extensions.ini \ + ${PREFIX}/etc/php/extensions.ini add-plist-info: add-plist-phpext add-plist-phpext: @@ -200,6 +202,8 @@ add-plist-phpext: >> ${TMPPLIST} @${ECHO_CMD} "@exec echo extension=${PHP_MODNAME}.so >> %D/etc/php/extensions.ini" \ >> ${TMPPLIST} + @${ECHO_CMD} "@exec sort -ruo %D/etc/php/extensions.ini %D/etc/php/extensions.ini" \ + >> ${TMPPLIST} @${ECHO_CMD} "@unexec cp %D/etc/php/extensions.ini %D/etc/php/extensions.ini.orig" \ >> ${TMPPLIST} @${ECHO_CMD} "@unexec grep -v extension=${PHP_MODNAME}\\\.so %D/etc/php/extensions.ini.orig > %D/etc/php/extensions.ini || true" \ |