From owner-freebsd-questions@FreeBSD.ORG Wed Aug 30 18:32:54 2006 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 88DBB16A4E0 for ; Wed, 30 Aug 2006 18:32:54 +0000 (UTC) (envelope-from h.nieser@xs4all.nl) Received: from smtp-vbr13.xs4all.nl (smtp-vbr13.xs4all.nl [194.109.24.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E63743D77 for ; Wed, 30 Aug 2006 18:32:44 +0000 (GMT) (envelope-from h.nieser@xs4all.nl) Received: from [192.168.1.64] (aphax.nl [82.92.29.227]) by smtp-vbr13.xs4all.nl (8.13.6/8.13.6) with ESMTP id k7UIVsEk036228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Aug 2006 20:32:02 +0200 (CEST) (envelope-from h.nieser@xs4all.nl) Message-ID: <44F5D920.1030306@xs4all.nl> Date: Wed, 30 Aug 2006 20:29:52 +0200 From: Hans Nieser User-Agent: Thunderbird 1.5.0.5 (X11/20060805) MIME-Version: 1.0 To: fbsd@a1poweruser.com References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: problem with phpMyAdmin port 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, 30 Aug 2006 18:32:54 -0000 fbsd wrote: > > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Bill Moran > Sent: Wednesday, August 30, 2006 1:14 PM > To: Daniel Gerzo > Cc: fbsd; freebsd-questions@FreeBSD. ORG > Subject: Re: problem with phpMyAdmin port > > > In response to Daniel Gerzo : > >>> When I try to run phpMyAdmin I get this error >>> Fatal error: Call to undefined function preg_replace() in >>> /usr/local/www/phpMyAdmin/libraries/sanitizing.lib.php on line > 37 >> this is not error of the port. You are missing PCRE php extension. >> Install the lang/php4-extensions or php5-extensions port. > > Actually, this _is_ an error in the port. The port should properly > specify the pcre extension as a dependency. The workaround > suggested > will get you going, however. > > If this problem is reproducible, you should file a PR. > > Are you sure the port installed successfully? I just installed this > port a few weeks ago and it worked fine. If you're ports tree is > up to date, then these bugs are newly introduced. > > -- > Bill Moran > Collaborative Fusion Inc. > > ****************************************************** > > pkg_info shows php5-pcre-5.1.4 installed so is this not > the correct pcre dependency? > You have to make sure that the pcre extension is actually being loaded by PHP. Check that you have the following line un /usr/local/etc/php/extensions.ini: extension=pcre.so I believe this should have been added automatically though, but to double check that it is loaded, restart apache if you've got PHP running as a module, and check the output of phpinfo();