php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39704 Fatal error: Class 'SimpleXMLIterator' not found
Submitted: 2006-12-01 15:16 UTC Modified: 2006-12-02 11:47 UTC
From: m0rf at mail dot cz Assigned:
Status: Not a bug Package: SPL related
PHP Version: 5.2.0 OS: FreeBSD 6.1
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: m0rf at mail dot cz
New email:
PHP Version: OS:

 

 [2006-12-01 15:16 UTC] m0rf at mail dot cz
Description:
------------
I upgraded PHP from 5.1.x to 5.2.0 and i'm getting now this error: Fatal error: Class 'SimpleXMLIterator' not found. 
I also didn't found (in changelog etc) message about SimpleXMLIterator getting away, so i'm expecting this class should still exists in SPL.

Configure Command:
'./configure' '--enable-versioning' '--enable-memory-limit' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection' '--enable-spl' '--program-prefix=' '--enable-fastcgi' '--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--prefix=/usr/local'


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-01 15:25 UTC] tony2001@php.net
--disable-all and no --enable-simplexml means SimpleXML is disabled.
 [2006-12-01 20:59 UTC] m0rf at mail dot cz
I'm using simplexml extension.
 [2006-12-01 21:03 UTC] m0rf at mail dot cz
I'm using simplexml extension.
 [2006-12-01 21:16 UTC] iliaa@php.net
What does extension_loaded("simplexml") return?
 [2006-12-01 23:39 UTC] m0rf at mail dot cz
bool(true)
when i'm checking declared classes, SimpleXML exists
i also tried recompile both php & extension, but it was not solution.
 [2006-12-01 23:49 UTC] m0rf at mail dot cz
SimpleXMLElement exists
 [2006-12-01 23:57 UTC] tony2001@php.net
So you have compiled PHP without SimpleXml and then plugged it in as a shared extension, right?
 [2006-12-01 23:57 UTC] m0rf at mail dot cz
right
 [2006-12-02 00:03 UTC] tony2001@php.net
Well, that won't work.
You need to enable both SPL and SimpleXML in the same time to be able to use SimpleXMLIterator, since this class is declared in SPL. 
And if there was now SimpleXML enabled at the time of SPL build, this class will not appear later without recompiling.
 [2006-12-02 00:04 UTC] m0rf at mail dot cz
i'll try it
 [2006-12-02 00:06 UTC] m0rf at mail dot cz
The SimpleXML extension is enabled by default. To disable it, use the --disable-simplexml configure option.
 [2006-12-02 00:08 UTC] m0rf at mail dot cz
ah disable-all doing it..
 [2006-12-02 00:53 UTC] m0rf at mail dot cz
It works as well. This is FreeBSD ports bug. I'll report it to FreeBSD port maintainers.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 21:01:29 2024 UTC