From owner-freebsd-questions@FreeBSD.ORG Sun Mar 15 14:21:24 2009 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 A322C1065675 for ; Sun, 15 Mar 2009 14:21:24 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 5C0588FC0C for ; Sun, 15 Mar 2009 14:21:24 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LirDN-0006Lb-2K for freebsd-questions@freebsd.org; Sun, 15 Mar 2009 14:21:21 +0000 Received: from pool-68-239-74-156.res.east.verizon.net ([68.239.74.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 Mar 2009 14:21:21 +0000 Received: from nightrecon by pool-68-239-74-156.res.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 Mar 2009 14:21:21 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Sun, 15 Mar 2009 10:22:03 -0400 Lines: 46 Message-ID: References: <49BCFC98.3010602@mykitchentable.net> <20090315095106.d63f3564.wmoran@potentialtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-68-239-74-156.res.east.verizon.net User-Agent: KNode/0.99.01 Sender: news Subject: Re: What Is Needed For SimpleXML Support in PHP? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nightrecon@verizon.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Mar 2009 14:21:24 -0000 Bill Moran wrote: > Drew Tomlinson wrote: >> >> I have php5-5.2.9 installed on my FBSD 6.3 system. I am attempting to >> use a php script that fails with: >> >> Call to undefined function simplexml_load_string() >> >> Googling suggests that this function is part of the PHP software and is >> installed by default unless built with the "--disable-simplexml" >> configure option. >> >> On my system, almost everything including PHP has been installed using >> portupgrade. I searched the ports and found one named php5-simplexml so >> I installed it and tried the script again. It still failed with the >> same error. >> >> More Googling and I found that "php -m" will show which modules are >> available. Here's that output: >> >> blacklamb> php -m >> [PHP Modules] >> ... >> SimpleXML >> ... >> >> Thus it appears that SimpleXML is available. >> >> Can anyone tell me what I'm missing? I'm lost. > > Details? > > My guess is that this is a web script that you're running via a browser, > and you didn't restart Apache after installing simplexml. Apache seems > to cache the list of installed PHP modules. > This is what I first thought when I saw this. It also may matter that because simplexml depends on xml and iconv extension=xml.so and extension=iconv.so may need to be before extension=simplexml.so in extensions.ini -Mike