Bug 146663 - PHP5 Fatal error: Call to undefined function simplexml_import_dom()
Summary: PHP5 Fatal error: Call to undefined function simplexml_import_dom()
Status: RESOLVED DUPLICATE of bug 141994
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Other (show other bugs)
Version: Final
Hardware: i586 SuSE Linux 10.0
: P5 - None : Critical
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-30 16:27 UTC by Cinxgler Mariaca Minda
Modified: 2006-01-30 20:22 UTC (History)
0 users

See Also:
Found By: Customer
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cinxgler Mariaca Minda 2006-01-30 16:27:06 UTC
I did install apache2-mod_php5-5.0.4-9.6

when I test this php code
 <?php
 $dom = new domDocument;
 $dom->loadXML('<books><book><title>blah</title></book></books>');
 if (!$dom) {
    echo 'Error while parsing the document';
    exit;
 }

 $s = simplexml_import_dom($dom);

 echo $s->book[0]->title; // blah
 ?> 

The Server respond with the next message:
Fatal error:  Call to undefined function simplexml_import_dom() in /srv/www/htdocs/simplexml.php on line 9

In the phpinfo() the simplexml is enabled.

The other php5 simplexml functions examples of PHP manual run well.
http://www.php.net/manual/es/ref.simplexml.php

The same code rules with the CLI version php5-5.0.4-9.6
Comment 1 Martin Lasarsch 2006-01-30 20:22:22 UTC

*** This bug has been marked as a duplicate of 141994 ***