From chinsan@blog.homiya.com  Wed Sep 19 16:51:20 2007
Return-Path: <chinsan@blog.homiya.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C6BA116A468;
	Wed, 19 Sep 2007 16:51:20 +0000 (UTC)
	(envelope-from chinsan@blog.homiya.com)
Received: from blog.homiya.com (blog.homiya.com [61.67.220.71])
	by mx1.freebsd.org (Postfix) with ESMTP id A4B4A13C4CA;
	Wed, 19 Sep 2007 16:51:20 +0000 (UTC)
	(envelope-from chinsan@blog.homiya.com)
Received: by blog.homiya.com (Postfix, from userid 1001)
	id 195B150843; Thu, 20 Sep 2007 00:51:19 +0800 (CST)
Message-Id: <20070919165119.195B150843@blog.homiya.com>
Date: Thu, 20 Sep 2007 00:51:19 +0800 (CST)
From: chinsan <chinsan@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: ale@FreeBSD.org
Subject: [PATCH] lang/php5: Add inline optimization KNOB
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         116472
>Category:       ports
>Synopsis:       [PATCH] lang/php5: Add inline optimization KNOB
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ale
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 19 17:00:07 GMT 2007
>Closed-Date:    Tue Oct 02 12:45:29 GMT 2007
>Last-Modified:  Tue Oct 02 12:45:29 GMT 2007
>Originator:     chinsan
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD blog.homiya.com 6.2-STABLE FreeBSD 6.2-STABLE #1: Wed Jul 25 09:11:00 CST 2007
>Description:
- This knob enable inline optimization.
  It produces the fastest PHP executable possible
  (without additional opcode optimizations by software like Zend Engine).

Port maintainer (ale@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- php5-5.2.4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/lang/php5/Makefile /home/chinsan/projects/php5/Makefile
--- /usr/ports/lang/php5/Makefile	2007-09-15 23:45:54.000000000 +0800
+++ /home/chinsan/projects/php5/Makefile	2007-09-20 00:49:05.000000000 +0800
@@ -41,6 +41,7 @@
 		SUHOSIN "Enable Suhosin protection system (not for jails)" on \
 		MULTIBYTE "Enable zend multibyte support" off \
 		IPV6 "Enable ipv6 support" on \
+		INLINE "Enable inline optimization" on \
 		MAILHEAD "Enable mail header patch" off \
 		REDIRECT "Enable force-cgi-redirect support (CGI only)" off \
 		DISCARD "Enable discard-path support (CGI only)" off \
@@ -148,6 +149,10 @@
 CONFIGURE_ARGS+=--disable-ipv6
 .endif
 
+.if defined(WITH_INLINE)
+CONFIGURE_ARGS+=--enable-inline-optimization
+.endif
+
 post-patch:
 	@${TOUCH} ${WRKSRC}/ext/php_config.h
 	@${REINPLACE_CMD} "s|^\(extension_dir\)|; \1|" ${WRKSRC}/php.ini-*
--- php5-5.2.4.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->ale 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Sep 19 17:00:19 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116472 
State-Changed-From-To: open->closed 
State-Changed-By: ale 
State-Changed-When: Tue Oct 2 12:44:41 UTC 2007 
State-Changed-Why:  
Inline optimizations are already enabled. 

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