From owner-freebsd-questions@FreeBSD.ORG Wed Oct 3 04:31:19 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E674916A418 for ; Wed, 3 Oct 2007 04:31:19 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id C735013C461 for ; Wed, 3 Oct 2007 04:31:18 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from localhost (localhost [127.0.0.1]) by ezekiel.daleco.biz (8.13.8/8.13.8) with ESMTP id l934V25i045648; Tue, 2 Oct 2007 23:31:04 -0500 (CDT) (envelope-from kdk@daleco.biz) X-Virus-Scanned: amavisd-new at daleco.biz Received: from ezekiel.daleco.biz ([127.0.0.1]) by localhost (ezekiel.daleco.biz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id fRmmQVP7Nnrq; Tue, 2 Oct 2007 23:30:54 -0500 (CDT) Received: from archangel.daleco.biz (dsl.daleco.biz [209.125.108.70]) by ezekiel.daleco.biz (8.13.8/8.13.8) with ESMTP id l934UZ5b045632; Tue, 2 Oct 2007 23:30:39 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <47031AE5.5000307@daleco.biz> Date: Tue, 02 Oct 2007 23:30:29 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.2) Gecko/20070418 SeaMonkey/1.1.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <340a29540710021836g759301f9rb9fd085dccb53e64@mail.gmail.com> <20071003014823.GA23244@ayn.mi.celestial.com> In-Reply-To: <20071003014823.GA23244@ayn.mi.celestial.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd@celestial.com, Andrew Falanga Subject: Re: Where do I find the PERL compatible functions for php 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: Wed, 03 Oct 2007 04:31:20 -0000 Bill Campbell wrote: > On Tue, Oct 02, 2007, Andrew Falanga wrote: >> Hi, >> >> Installed PHP 5 using the ports collection in preparation for installing >> phpWebSite (a CMS system). When trying to run the setup program (an >> index.php) file on the server I get, "*Fatal error*: Call to undefined >> function preg_match() in * >> /usr/local/www/apache22/data/phpwebsite_1_3_1/setup/index.php* on line *136" >> *. I've found from the php.net web site that this is the PERL compatible >> regular expression stuff. Since it's not there, how would I get it? > > This is a build-time option with php, and requires the pcre libraries. Actually, it's been "split out" for some time now; you can get PCRE support for your pre-existing PHP installation by installing ports/devel/php5-pcre. But, since most users want PHP to support many technologies/modules, the general thing to do is to install ports/lang/php5-extensions and, in this case, be sure that "pcre" is checked during the configure stage (which, I believe, it is by default); after that, devel/php5-pcre and several other php5-foo ports will be added to your system, and PHP will suddenly grok things like XML, SQL, and Perl-compatible regular expressions (or at least whatever you enabled). HTH, Kevin Kinsey -- We are drowning in information but starved for knowledge. -- John Naisbitt, Megatrends