Bug 146663

Summary: PHP5 Fatal error: Call to undefined function simplexml_import_dom()
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Cinxgler Mariaca Minda <cinxgler>
Component: OtherAssignee: E-mail List <bnc-team-screening>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None    
Version: Final   
Target Milestone: ---   
Hardware: i586   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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 ***