Re: PHP_CompatInfo 1.4.0 and HTML_Ajax 0.5.0

From: Date: Tue, 26 Sep 2006 21:07:41 +0000
Subject: Re: PHP_CompatInfo 1.4.0 and HTML_Ajax 0.5.0
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-44073@lists.php.net to get a copy of this message
Its an optional dependency. You only hit this code if your sending XML from js as text/xml, or if your want to just return DOM objects from mapped PHP methods. We support support the php5 DOM in the same way with the XML features. Some example code:
       // we check for the dom extension
       elseif (extension_loaded('Dom'))
       {
           $doc = new DOMDocument();
           $doc->loadXML($input);
           return $doc;
       }
       // otherwise we'll assume you're on php4 and using domxml
       else
       {
           return domxml_open_mem($input);
       }
I guess we should make domxml fully optional if it doesn't exist just give you the XML as a string. That way no one will get an error if you have the DOM stuff turned off. -josh Laurent Laville wrote:
With upcoming version 1.4.0 of PHP_CompatInfo, i've detected that HTML_AJAX 0.5.0 distribution requires PHP 4.2.1 (minimum) I've explain how to find it in the UserGuide (i've now finished). A last read, and i'll upload it on my website To resume : i think there is an error in package xml of HTML_AJAX 0.5.0 dependencies <dep type="php" rel="ge" version="4.1.0" optional="no"/> it should be <dep type="php" rel="ge" version="4.2.1" optional="no"/> Because mandatory file of main class require_once "HTML/AJAX/Serializer/XML.php"; used native function domxml_open_mem [1] Tell me if i'm wrong regards Laurent [1] http://www.php.net/manual/en/function.domxml-open-mem.php


« previous php.pear.dev (#44073) next »