From wmoran@potentialtech.com  Mon Aug  9 16:19:38 2004
Return-Path: <wmoran@potentialtech.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 49FEF16A4D0
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  9 Aug 2004 16:19:38 +0000 (GMT)
Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E134A43D3F
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  9 Aug 2004 16:19:37 +0000 (GMT)
	(envelope-from wmoran@potentialtech.com)
Received: from mail.potentialtech.com ([68.68.113.64]) by mta9.adelphia.net
          (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with SMTP
          id <20040809161937.QGSB2023.mta9.adelphia.net@mail.potentialtech.com>
          for <FreeBSD-gnats-submit@freebsd.org>;
          Mon, 9 Aug 2004 12:19:37 -0400
Received: by mail.potentialtech.com (sSMTP sendmail emulation); Mon,  9 Aug 2004 12:19:37 -0400
Message-Id: <20040809161937.QGSB2023.mta9.adelphia.net@mail.potentialtech.com>
Date: Mon,  9 Aug 2004 12:19:37 -0400
From: "Bill Moran" <wmoran@potentialtech.com>
Reply-To: Bill Moran <wmoran@potentialtech.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: The new PHP port does not all the inclusion of certain extensions
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         70220
>Category:       ports
>Synopsis:       The new PHP port does not all the inclusion of certain extensions
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 09 16:20:20 GMT 2004
>Closed-Date:    Mon Aug 09 17:24:16 GMT 2004
>Last-Modified:  Mon Aug 09 17:24:16 GMT 2004
>Originator:     Bill Moran
>Release:        FreeBSD 4.10-RELEASE-p2 i386
>Organization:
Potential Technologies
>Environment:
System: FreeBSD working.potentialtech.com 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #3: Mon Jul 26 01:12:57 EDT 2004 wmoran@working.potentialtech.com:/usr/obj/usr/src/sys/WORKING i386


	
>Description:
	The current PHP4 port (lang/php4) adds the --disable-all option to
	CONFIGURE_ARGS.  It appears as though this was done to allow additional
	ports to be made that add modular functionality to PHP 4.
	Unfortunately, --disable-all also disables many features of PHP 4 that
	can not be added as seperate ports.  Two specific examples are pcre
	and session support.  Both of these feature sets are "assumed" to
	be there by the folks who write the PHP docs, and it seems that many
	PHP-based applications expect that they will exist.
	Currently, there is no way to add these back in, except to hack the
	makefile (which seems to defeat the purpose of the port)
>How-To-Repeat:
	Install PHP 4 port, then try to use a script that requires sessions
	or pcre.  Those functions will be unavailable.  Searching for a
	port to add on those functions (php4_pcre would be a logical guess)
	does not yield anything.  I don't think it's possible to create a
	seperate port that adds these features, as they're part of the
	PHP distribution.
	
>Fix:
	I was able to work arond this by hacking the Makefile to specifically
	add '--with-pcre-regex=yes --enable-session' to CONFIGURE_ARGS (after
	the --disable-all).  It's possible that removing --disable-all
	altogether might be a better idea, but I have not tested.
	There are a number of extensions (such as the two examples given)
	that should probably always be enabled, since the PHP team seems
	to assume that they will be, as well as many PHP app developers.
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: thierry 
State-Changed-When: Mon Aug 9 17:22:16 GMT 2004 
State-Changed-Why:  

Please upgrade your ports tree. 

You will find php4-pcre-4.3.8_2 in devel/php4-pcre 
and php4-session-4.3.8_2 in www/php4-session. 

Regards, 

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