|
Fatal error: Class 'DOMDocument' not found in /website/ZendFramework-0.1.5/library/Zend/Feed.php on line 204 XXXI. DOM XML Functions
In my humble opinion, components of the Zend Framework shouldn't
rely on PECL extensions, and even worst in this case, it rely on a
third party library "This extension makes use of the GNOME XML library." Without being negative, I hope it will change. The purpose of a
framework is making development easier, not tricky.. did I miss something ? h
|
|
Hello, h3.
You wrote: > Fatal error: Class 'DOMDocument' not found in > /website/ZendFramework-0.1.5/library/Zend/Feed.php on line 204 > XXXI. DOM XML Functions > [...] > Note: This extension has been moved to the PECL repository and > is no longer bundled with PHP as of PHP 5.0.0. > Note: This extension is no longer marked experimental. It will, > however, never be released with PHP 5, and will only be distributed > with PHP 4. If you need DOM XML support with PHP 5 you can use the > DOM extension. This domxml extension is not compatible with the DOM > extension. > -- php.net > In my humble opinion, components of the Zend Framework shouldn't > rely on PECL extensions, and even worst in this case, it rely on a > third party library > "This extension makes use of the GNOME XML library." > Without being negative, I hope it will change. The purpose of a > framework is making development easier, not tricky.. > did I miss something ? Yes, try to look at http://php.net/manual/en/ref.dom.php This is an object from 'dom' extension. This extension is enabled by default. -- Best regards, Alexei "SibProgrammer" Yuzhakov, Developer, SiteBuilder for Unix, SWsoft, Inc. |
|
Administrator
|
In reply to this post by h3-2
-- h3 <[hidden email]> wrote
(on Friday, 20 October 2006, 12:21 AM -0400): > > Fatal error: Class 'DOMDocument' not found in /website/ZendFramework-0.1.5/ > library/Zend/Feed.php on line 204 > > > XXXI. DOM XML Functions > > [...] > > Note: This extension has been moved to the PECL repository and is no longer > bundled with PHP as of PHP 5.0.0. > > Note: This extension is no longer marked experimental. It will, however, > never be released with PHP 5, and will only be distributed with PHP 4. If > you need DOM XML support with PHP 5 you can use the DOM extension. This > domxml extension is not compatible with the DOM extension. > > -- php.net > > In my humble opinion, components of the Zend Framework shouldn't rely on PECL > extensions, and even worst in this case, it rely on a third party library > > "This extension makes use of the GNOME XML library." > > Without being negative, I hope it will change. The purpose of a framework is > making development easier, not tricky.. > > did I miss something ? Actually, yes. The page you reference is from ext/domxml, which is a PHP 4 extension. You want to look here: http://php.net/dom Which starts out with the text: The DOM extension is the replacement for the DOM XML extension from PHP 4. The extension still contains many old functions, but they should no longer be used. In particular, functions that are not object-oriented should be avoided. The extension allows you to operate on an XML document with the DOM API. Installation There is no installation needed to use these functions; they are part of the PHP core. Note that the DOM extension is part of the PHP core, and is included by default when installing PHP. You actually have to compile specially to omit the functionality -- which, by the way, Gentoo does in the PHP they ship. One large goal of ZF is to only use extensions that are bundled in the PHP core, and, if an extension is not part of core, have a PHP implementation (see Zend_Json, for instance; ext/json exists, but is not in core; thus the PHP implementation). -- Matthew Weier O'Phinney PHP Developer | [hidden email] Zend - The PHP Company | http://www.zend.com/ |
|
Matthew Weier O'Phinney wrote:
> One large goal of ZF is to only use extensions that are bundled in the > PHP core, and, if an extension is not part of core, have a PHP > implementation (see Zend_Json, for instance; ext/json exists, but is not > in core; thus the PHP implementation). IIRC it is in 5.2 Arnaud. |
|
>> One large goal of ZF is to only use extensions that are bundled in the
>> PHP core, and, if an extension is not part of core, have a PHP >> implementation (see Zend_Json, for instance; ext/json exists, but is not >> in core; thus the PHP implementation). > > IIRC it is in 5.2 But the minimum requirements for ZF are today by PHP 5.1.4 !!! Thus people who want to use Zend_Json must especially be warned that they have to install the IIRC extension until we have raised the minimum requirements to 5.2. Should be added to the docu !! Greetings Thomas |
|
Ahh, seems my PHP version was in cause.. I'm using 5.0.4, which seems to
have "--disable-dom" by default. And it's good to know that Zend_Json requires PHP 5.2 Anyway thanks a lot for the precision now it makes sens, I guess it's update time :p best regards Thomas Weidner a écrit : >>> One large goal of ZF is to only use extensions that are bundled in the >>> PHP core, and, if an extension is not part of core, have a PHP >>> implementation (see Zend_Json, for instance; ext/json exists, but is >>> not >>> in core; thus the PHP implementation). >> >> IIRC it is in 5.2 > > But the minimum requirements for ZF are today by PHP 5.1.4 !!! > > Thus people who want to use Zend_Json must especially be warned that > they have to install the IIRC extension until we have raised the > minimum requirements to 5.2. > Should be added to the docu !! > > Greetings > Thomas |
|
In reply to this post by Thomas Weidner
In regards to Zend_Json, why was it designed to support only one
encoder/decoder? If the encoder/decoder was specified as an interface
we could easily swap out the backends for this task. The reason I ask
it that from a performance point of view (No I have not run an actual
test) it seems like the extension is faster and would be preferable to
use if it is installed.
Lee On 10/20/06, Thomas Weidner <[hidden email]> wrote:
>> One large goal of ZF is to only use extensions that are bundled in the |
|
In regards to Zend_Json, why was it designed to support only one
encoder/decoder? If the encoder/decoder was specified as an interface
we could easily swap out the backends for this task. The reason I ask
it that from a performance point of view (No I have not run an actual
test) it seems like the extension is faster and would be preferable to
use if it is installed.
Lee On 10/20/06, Thomas Weidner <[hidden email]> wrote:
>> One large goal of ZF is to only use extensions that are bundled in the |
|
In reply to this post by Thomas Weidner
Zend_Json does not (yet) use ext/json. It is a "PHP implementation"
meaning userland. I would however like to optionally use the ext/json if it exists. - Davey On Oct 20, 2006, at 4:29 AM, Thomas Weidner wrote: >>> One large goal of ZF is to only use extensions that are bundled >>> in the >>> PHP core, and, if an extension is not part of core, have a PHP >>> implementation (see Zend_Json, for instance; ext/json exists, but >>> is not >>> in core; thus the PHP implementation). >> >> IIRC it is in 5.2 > > But the minimum requirements for ZF are today by PHP 5.1.4 !!! > > Thus people who want to use Zend_Json must especially be warned > that they have to install the IIRC extension until we have raised > the minimum requirements to 5.2. > Should be added to the docu !! > > Greetings > Thomas |
|
In reply to this post by h3-2
That is not the default, that is a result of using a distro package
to install PHP. The default for /anything/ in configure, is nothing, and for somethings that means enabled, and others disabled. Your configure explicitly disables ext/ dom. As I mentioned in another e-mail, Zend_Json does NOT require 5.2, it does not use ext/json. - Davey On Oct 20, 2006, at 8:14 AM, h3 wrote: > Ahh, seems my PHP version was in cause.. I'm using 5.0.4, which > seems to have "--disable-dom" by default. And it's good to know > that Zend_Json requires PHP 5.2 > > Anyway thanks a lot for the precision now it makes sens, I guess > it's update time :p > > best regards > > > Thomas Weidner a écrit : >>>> One large goal of ZF is to only use extensions that are bundled >>>> in the >>>> PHP core, and, if an extension is not part of core, have a PHP >>>> implementation (see Zend_Json, for instance; ext/json exists, >>>> but is not >>>> in core; thus the PHP implementation). >>> >>> IIRC it is in 5.2 >> >> But the minimum requirements for ZF are today by PHP 5.1.4 !!! >> >> Thus people who want to use Zend_Json must especially be warned >> that they have to install the IIRC extension until we have raised >> the minimum requirements to 5.2. >> Should be added to the docu !! >> >> Greetings >> Thomas > |
|
In reply to this post by Lee Saferite
I would, rather than creating a much more complicated code base for something so simple, just add optional support for ext/json if it exists.
- Davey On Oct 20, 2006, at 8:16 AM, Lee Saferite wrote: In regards to Zend_Json, why was it designed to support only one encoder/decoder? If the encoder/decoder was specified as an interface we could easily swap out the backends for this task. The reason I ask it that from a performance point of view (No I have not run an actual test) it seems like the extension is faster and would be preferable to use if it is installed. |
|
Administrator
|
In reply to this post by Davey Shafik-3
-- Davey Shafik <[hidden email]> wrote
(on Friday, 20 October 2006, 08:29 AM -0400): > Zend_Json does not (yet) use ext/json. It is a "PHP implementation" > meaning userland. I would however like to optionally > use the ext/json if it exists. This is planned, though there's not a JIRA issue for it yet. Earliest would be the release following 0.2, though it may be after that. > On Oct 20, 2006, at 4:29 AM, Thomas Weidner wrote: > > > > One large goal of ZF is to only use extensions that are bundled > > > > in the > > > > PHP core, and, if an extension is not part of core, have a PHP > > > > implementation (see Zend_Json, for instance; ext/json exists, but > > > > is not > > > > in core; thus the PHP implementation). > > > > > > IIRC it is in 5.2 > > > > But the minimum requirements for ZF are today by PHP 5.1.4 !!! > > > > Thus people who want to use Zend_Json must especially be warned > > that they have to install the IIRC extension until we have raised > > the minimum requirements to 5.2. > > Should be added to the docu !! -- Matthew Weier O'Phinney PHP Developer | [hidden email] Zend - The PHP Company | http://www.zend.com/ |
| Powered by Nabble | Edit this page |
