Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Mar 2009 11:47:49 -0700
From:      Drew Tomlinson <drew@mykitchentable.net>
To:        nightrecon@verizon.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: What Is Needed For SimpleXML Support in PHP?
Message-ID:  <49BD4D55.4030304@mykitchentable.net>
In-Reply-To: <gpj2sj$b0d$1@ger.gmane.org>
References:  <49BCFC98.3010602@mykitchentable.net>	<20090315095106.d63f3564.wmoran@potentialtech.com> <gpj2sj$b0d$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Michael Powell wrote:
> Bill Moran wrote:
>
>   
>> Drew Tomlinson <drew@mykitchentable.net> 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

Yes, specifically I was attempting to use a WordPress plugin.  And
although I was sure I had restarted Apache since installing
php5-simplexml, I tried again.  The resolved the error.

I will now sit in the corner wearing my dunce cap.

Thanks,

Drew

-- 
Be a Great Magician!
Visit The Alchemist's Warehouse

http://www.alchemistswarehouse.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49BD4D55.4030304>