PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » XML » XML_sql2xml » Bug #627

DOM requirement implicit

Details

Submitted2004-01-26 23:00 UTC
Fromdjpenton at students dot cs dot mu dot oz dot au
Assignedchregu
StatusClosed
PackageXML_sql2xml
PHP Version4.3.4
OSSolaris
Roadmaps(Not assigned)

Comments

[2004-01-26 23:00 UTC] djpenton at students dot cs dot mu dot oz dot au

Description:
------------
Sounds like a useful package.

DOM XML is listed as experimental. Maybe it would be useful to list it as a required package (we had planned to use this package and can't because we need our system to run off a standard php install).

Fatal error: Call to undefined function: domxml_new_xmldoc() in /mount/autofs/home_lt/summer0304/www_server/php/lib/php/XML/sql2xml.php on line 220

Reproduce code:
---------------
<?php
require_once "XML/sql2xml.php";
$sql2xmlclass = new xml_sql2xml("mysql://username:password@localhost/xmltest");
$xmlstring = $sql2xmlclass->getxml("select * from bands");
?>

Expected result:
----------------
If DOM not installed:

Fatal error: Call to undefined function: domxml_new_xmldoc() in /mount/autofs/home_lt/summer0304/www_server/php/lib/php/XML/sql2xml.php
on line 220

Actual result:
--------------
<?xml version="1.0"?>
<root>
<result>
<row>
<id>1</id>
<name>The Blabbers</name>
<birth_year>1998</birth_year>
<birth_place>London</birth_place>
<genre>Rock'n'Roll</genre>
</row>
<row>
<id>2</id>
<name>Only Stupids</name>
<birth_year>1997</birth_year>
<birth_place>New York</birth_place>
<genre>Hip Hop</genre>
</row>
</result>
</root>