php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26957 No domxml eventhough phpinfo tells me it is installed?
Submitted: 2004-01-18 18:11 UTC Modified: 2004-03-14 05:13 UTC
From: banpei at banpei dot net Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 5.0.0b3 (beta3) OS: Redhat 7.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: banpei at banpei dot net
New email:
PHP Version: OS:

 

 [2004-01-18 18:11 UTC] banpei at banpei dot net
Description:
------------
I got the error:
Fatal error: Call to undefined function domxml_open_file() 
eventhough I compiled with the dom extension. I also tried the old xmldocfile() function, but that didn't work either.

Then I tried other domxml functions and neither of them worked. Phpinfo tells me that I configured --with-dom, shows that dom and libxml are both enabled.

My current libxml2 version is: 2.6.4

Phpinfo is on:
http://www.trueno.org/infophp.php

Reproduce code:
---------------
http://www.trueno.org/testdom.php

Expected result:
----------------
No output

Actual result:
--------------
Fatal error: Call to undefined function domxml_open_file() in /home/trueno/testdom.php on line 2

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-18 18:34 UTC] sniper@php.net
There is no such function in the new ext/dom..

 [2004-01-18 19:19 UTC] banpei at banpei dot net
Any idea where I may find documentation about the difference between old and new dom compared to php4.3 and php5.0?
 [2004-03-11 13:47 UTC] kenneth at clearplanet dot co dot za
I'm having the same problem with Redhat 9 and PHP5.0.0-RC1 (snapshot). By pulling up a list of all available functions it is confirmed that the domxml_open_file does not exist.

I know that it will take a while for all the documentation to reflect the major changes in PHP5, but is there a means how we can get the documentation for the DOM XML/XSL extension?
 [2004-03-11 15:05 UTC] kenneth at clearplanet dot co dot za
<?
$c = get_declared_classes ();
sort ($c);
print_r($c);
?>

By running the above code you'll get the following list of classes:
--snip--
[13] => domattr
[14] => domcdatasection
[15] => domcharacterdata
[16] => domcomment
[17] => domconfiguration
[18] => domdocument
[19] => domdocumentfragment
[20] => domdocumenttype
[21] => domdomerror
[22] => domelement
[23] => domentity
[24] => domentityreference
[25] => domerrorhandler
[26] => domexception
[27] => domimplementation
[28] => domimplementationlist
[29] => domimplementationsource
[30] => domlocator
[31] => domnamednodemap
[32] => domnamelist
[33] => domnamespacenode
[34] => domnode
[35] => domnodelist
[36] => domnotation
[37] => domprocessinginstruction
[38] => domstring_extend
[39] => domstringlist
[40] => domtext
[41] => domtypeinfo
[42] => domuserdatahandler
[43] => domxpath
--snip--

The indexes will differ, but that is besides the point. The DOM interface can now only be access through these classes.

For documentation on these classes you can try the libxml2 homepage at www.xmlsoft.org, but I'm not sure if the docs correspond to the PHP implementation.
 [2004-03-14 05:13 UTC] chregu@php.net
Use the W3C docs for some hints, how to use it.

Or my slides from http://slides.bitflux.ch/phpug2004_1/

Or wait for the Zend Article about that, which should be 
published soon.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC