Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2005 22:25:26 +0200
From:      =?ISO-8859-1?Q?Erik_N=F8rgaard?= <norgaard@locolomo.org>
To:        Myron Turner <mturner@ms.umanitoba.ca>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: PHP PCRE
Message-ID:  <42D81BB6.4080705@locolomo.org>
In-Reply-To: <6.2.0.14.0.20050715070314.01c394e0@130.179.16.122>
References:  <6.2.0.14.0.20050715070314.01c394e0@130.179.16.122>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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