From owner-freebsd-questions@FreeBSD.ORG Fri Jul 15 20:25:39 2005 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D5C7E16A41C for ; Fri, 15 Jul 2005 20:25:39 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from top.daemonsecurity.com (62-14-217-85.inversas.jazztel.es [62.14.217.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 351BC43D46 for ; Fri, 15 Jul 2005 20:25:38 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [192.168.0.64] (unknown [192.168.0.64]) by top.daemonsecurity.com (Postfix) with ESMTP id 1B047FD067; Fri, 15 Jul 2005 22:23:28 +0200 (CEST) Message-ID: <42D81BB6.4080705@locolomo.org> Date: Fri, 15 Jul 2005 22:25:26 +0200 From: =?ISO-8859-1?Q?Erik_N=F8rgaard?= Organization: Locolomo.ORG User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050529) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Myron Turner References: <6.2.0.14.0.20050715070314.01c394e0@130.179.16.122> In-Reply-To: <6.2.0.14.0.20050715070314.01c394e0@130.179.16.122> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@FreeBSD.org Subject: Re: PHP PCRE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2005 20:25:40 -0000 Myron Turner wrote: > I just installed FreeBSD 5.4 with PHP 5.0.3 for the express purpose of > testing out a web-based application. > > I was wondering what the rationale is for excluding PCRE from the > current php distribution. As I understand it, the PCRE extensions are > included by default in PHP 5. This suggests that the FreeBSD > organization opted not to include these. A search of mailing lists > shows that people have been having problems because of this. > > For me, the solution is not to install a rebuilt php on my test machine, > because I have to have the assurance that my application will run on any > FreeBSD system. On FreeBSD you are given the option of installing a pure php with no extra bells or whistles. Then you can add the extensions you neeed using the php5-extensions metaport, which really just installs individual modules such as devel/php5-pcre. And, AFIAK, installing extensions afterwards does not require that you rebuild php5. I have had problems with this too - usually they amounted to forgetting about the extensions, because back then when I first used it, extensions was installed with the php base (I think this was with php 4.1?). As for reasoning: For security reasons or performance it may be wise to exclude what you don't use. pcre is not the fastest thing AFAIK. Now, I must add the disclaimer that I'm using php4 Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2