From nobody@FreeBSD.org  Thu Mar 18 17:08:43 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8FBF6106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Mar 2010 17:08:43 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 7E6AC8FC1E
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Mar 2010 17:08:43 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o2IH8hq7022524
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 18 Mar 2010 17:08:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o2IH8gVg022512;
	Thu, 18 Mar 2010 17:08:42 GMT
	(envelope-from nobody)
Message-Id: <201003181708.o2IH8gVg022512@www.freebsd.org>
Date: Thu, 18 Mar 2010 17:08:42 GMT
From: tuupic <mr@tuupic.org.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Patch for php5-5.2.12 to solve some problems with apache-itk
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         144859
>Category:       ports
>Synopsis:       lang/php5: patch for php5-5.2.12 to solve some problems with apache-itk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 18 17:10:01 UTC 2010
>Closed-Date:    Fri Apr 09 09:43:14 UTC 2010
>Last-Modified:  Fri Apr 09 09:43:14 UTC 2010
>Originator:     tuupic
>Release:        8.0
>Organization:
>Environment:
>Description:
If I build php5 apache module with apache-itk, php have built with zend-thread-safe enabled.
It provides many problem.
With apache-prefork all is normal.
It is because php configure.m4 scipt does know about MPM-ITK
Patch in attach fixes this problem.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- sapi.old/apache2filter/config.m4    2010-03-19 00:48:55.000000000 +0800
+++ sapi/apache2filter/config.m4        2010-03-19 00:50:53.000000000 +0800
@@ -118,7 +118,7 @@
     ;;
   esac
 
-  if test "$APXS_MPM" != "prefork"; then
+  if test "$APXS_MPM" != "itk" -a "$APXS_MPM" != "prefork" -a "$APXS_MPM" != "peruser"; then
     PHP_BUILD_THREAD_SAFE
   fi
   AC_MSG_RESULT(yes)
--- sapi.old/apache2handler/config.m4   2010-03-19 00:48:56.000000000 +0800
+++ sapi/apache2handler/config.m4       2010-03-19 00:51:13.000000000 +0800
@@ -117,7 +117,7 @@
     ;;
   esac
 
-  if test "$APXS_MPM" != "prefork"; then
+  if test "$APXS_MPM" != "itk" -a "$APXS_MPM" != "prefork" -a "$APXS_MPM" != "peruser"; then
     PHP_BUILD_THREAD_SAFE
   fi
   AC_MSG_RESULT(yes)


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Mar 18 18:24:38 UTC 2010 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144859 

From: Svyatoslav Lempert <svyatoslav.lempert@gmail.com>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/144859: lang/php5: patch for php5-5.2.12 to solve some 
	problems with apache-itk
Date: Thu, 1 Apr 2010 10:02:11 +1000

 Hello!
 
 I have this problem too and this patch really fix problem for apache
 mpm-itk for PHP5 with extenstions like Zend Optimizer and ionCube
 (that does not work without patch),
 please assign this.
 
 Thanks for attention.
 
 -- 
 Svyatoslav
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Fri Apr 9 09:43:03 UTC 2010 
State-Changed-Why:  
Fixed in PHP 5.3. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144859 
>Unformatted:
