From nobody@FreeBSD.org  Sat Apr  5 09:43:50 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id B8291B26
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Apr 2014 09:43:50 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id 8BC0676E
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  5 Apr 2014 09:43:50 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s359ho8F013924
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 5 Apr 2014 09:43:50 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s359ho1N013898;
	Sat, 5 Apr 2014 09:43:50 GMT
	(envelope-from nobody)
Message-Id: <201404050943.s359ho1N013898@cgiserv.freebsd.org>
Date: Sat, 5 Apr 2014 09:43:50 GMT
From: Spil <spil.oss@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [lang/php] Unneccesary ZTS/threaded warning WITH_ZTS
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         188285
>Category:       ports
>Synopsis:       lang/php5: Unneccesary ZTS/threaded warning WITH_ZTS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 05 09:50:00 UTC 2014
>Closed-Date:    Sat Apr 05 11:45:08 UTC 2014
>Last-Modified:  Sat Apr 05 11:45:08 UTC 2014
>Originator:     Spil
>Release:        FreeBSD 10.0-RELEASE
>Organization:
n.a.
>Environment:
FreeBSD build.example.org 10.0-RELEASE FreeBSD 10.0-RELEASE #0: Wed Jan 15 15:26:34 CET 2014     root@beastie.example.org:/usr/obj/usr/src/sys/BEASTIE100  amd64

>Description:
When building mod_php55 there was an unneccesary warning
!!! If you have a threaded Apache, you must build ${PHP_PORT} with ZTS support to enable thread-safety in extensions !!!
when make is run with (non-default) option ZTS enabled
>How-To-Repeat:
# make showconfig
===> The following configuration options are available for mod_php55-5.5.11:
     AP2FILTER=off: Use Apache 2.x filter interface (experimental)
     DEBUG=off: Enable debug
     DTRACE=off: Enable DTrace support
     IPV6=on: Enable ipv6 support
     MAILHEAD=off: Enable mail header patch
     LINKTHR=on: Link thread lib (for threaded extensions)
     ZTS=on: Force Zend Thread Safety (ZTS) build
===> Use 'make config' to modify these settings
# # make
/!\ WARNING /!\
!!! If you have a threaded Apache, you must build lang/php55 with ZTS support to enable thread-safety in extensions !!!


>Fix:
Add conditional block around the warning that checks the ZTS option (see patch)

Patch attached with submission follows:

--- lang/php5/Makefile.orig	2014-04-04 13:08:17.000000000 +0200
+++ lang/php5/Makefile	2014-04-05 11:32:54.889146154 +0200
@@ -102,8 +102,10 @@
 PKGMESSAGE=	${PKGDIR}/pkg-message.mod
 MODULENAME=	libphp5
 SHORTMODNAME=	php5
+.if ! ${PORT_OPTIONS:MZTS}
 WARNING=	"!!! If you have a threaded Apache, you must build ${PHP_PORT} with ZTS support to enable thread-safety in extensions !!!"
 .endif
+.endif
 
 .if ${PORT_OPTIONS:MEMBED}
 PHP_SAPI+=	embed
--- lang/php55/Makefile.orig	2014-04-05 11:32:15.505149240 +0200
+++ lang/php55/Makefile	2014-04-05 11:30:59.251157567 +0200
@@ -102,8 +102,10 @@
 PKGMESSAGE=	${PKGDIR}/pkg-message.mod
 MODULENAME=	libphp5
 SHORTMODNAME=	php5
+.if ! ${PORT_OPTIONS:MZTS}
 WARNING=	"!!! If you have a threaded Apache, you must build ${PHP_PORT} with ZTS support to enable thread-safety in extensions !!!"
 .endif
+.endif
 
 .if ${PORT_OPTIONS:MEMBED}
 PHP_SAPI+=	embed


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Apr 5 10:42:44 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=188285 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Sat Apr 5 11:44:26 UTC 2014 
State-Changed-Why:  
You should re-read carefully the warning :-) 

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