ports/147075: Patch for lang/php52 disable ZTS for Apache MPM-ITK for Zend Optimizer

Kuzma Bukin kuzma.bukin at gmail.com
Wed May 26 12:10:01 UTC 2010


>Number:         147075
>Category:       ports
>Synopsis:       Patch for lang/php52 disable ZTS for Apache MPM-ITK for Zend Optimizer
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed May 26 12:10:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Kuzma Bukin
>Release:        7.3-RELEASE
>Organization:
>Environment:
>Description:
Hello friends!

If you have apache-itk installed in your system PHP will be compiled with ZTS support. This is wrong because Zend Optimizer can't work with it
>How-To-Repeat:
echo 'WITH_MPM=itk' >> /etc/make.conf
cd /usr/ports/www/apache22
make install clean

cd /usr/ports/lang/php52
make config
ENABLE Build Apache module
make install clean

PHP will be compiled with zend thread safety, but ZTS is needed only for apache-mpm-worker
>Fix:
I have found solution in the old PR ports/144859 patch

File patch-ITK.m4 for solve this problem you need put this patch to the php52/files directory, see attachment

Patch attached with submission follows:

--- sapi/apache2handler/config.m4.old   2010-03-18 14:52:27.000000000 +0000
+++ sapi/apache2handler/config.m4       2010-03-18 14:52:56.000000000 +0000
@@ -117,7 +117,7 @@
     ;;
   esac

-  if test "$APXS_MPM" != "prefork"; then
+  if test "$APXS_MPM" != "itk" -a "$APXS_MPM" != "prefork"; then
     PHP_BUILD_THREAD_SAFE
   fi
   AC_MSG_RESULT(yes)
~           


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list