Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jun 2013 15:25:01 GMT
From:      "r4721@tormail.org" <r4721@tormail.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/180125: [patch] add ZTS option to lang/php5
Message-ID:  <201306301525.r5UFP17a055002@oldred.freebsd.org>
Resent-Message-ID: <201306301530.r5UFU0CR074224@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         180125
>Category:       ports
>Synopsis:       [patch] add ZTS option to lang/php5
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 30 15:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     r4721@tormail.org
>Release:        
>Organization:
>Environment:
>Description:
patch adds ZTS (zend-thread-safety) option, for assisting in developing PHP extensions.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: lang/php5/Makefile
===================================================================
--- lang/php5/Makefile	(revision 322037)
+++ lang/php5/Makefile	(working copy)
@@ -38,7 +38,7 @@
 
 USE_GNOME=	libxml2
 
-OPTIONS_DEFINE=	CLI CGI FPM APACHE AP2FILTER EMBED DEBUG DTRACE IPV6 MAILHEAD LINKTHR
+OPTIONS_DEFINE=	CLI CGI FPM APACHE AP2FILTER EMBED DEBUG DTRACE IPV6 MAILHEAD LINKTHR ZTS
 OPTIONS_DEFAULT=CLI CGI IPV6 LINKTHR
 
 CLI_DESC=	Build CLI version
@@ -52,6 +52,7 @@
 IPV6_DESC=	Enable ipv6 support
 MAILHEAD_DESC=	Enable mail header patch
 LINKTHR_DESC=	Link thread lib (for threaded extensions)
+ZTS_DESC=	Zend thread safety (for extension development)
 
 CONFLICTS=	php52-5* php53-5*
 
@@ -150,6 +151,10 @@
 CONFIGURE_ENV+=	LIBS="${LIBS} ${PTHREAD_LIBS}"
 .endif
 
+.if ${PORT_OPTIONS:MZTS}
+CONFIGURE_ARGS+=--enable-maintainer-zts
+.endif
+
 .if ${PORT_OPTIONS:MDEBUG}
 CONFIGURE_ARGS+=--enable-debug
 .endif


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



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