Bug 106219

Summary: PHP 5.2.0 SPL and SimpleXML build problem - SimpleXMLIterator not found
Product: Ports & Packages Reporter: m0rf <m0rf>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description m0rf 2006-12-02 15:20:09 UTC
When i tried to work with SimpleXML extension and SPL, i got error "Fatal
error: Class 'SimpleXMLIterator' not found". This is because SPL and SimpleXML
must be build together. But when i'm using ports lang/php5 and there i compile
textproc/php5-simplexml extension SPL don't detect SimpleXML extension and
didn't compile SimpleXMLIterator class into the PHP.

For more information about this bug read this:
http://bugs.php.net/bug.php?id=39704

Fix: 

Building SimpleXML together with SPL / PHP.
How-To-Repeat: Compile lang/php5 and then textproc/simplexml. then try using SimpleXMLIterator
class in php script.
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2006-12-02 16:21:53 UTC
State Changed
From-To: open->feedback

Which port is this about? I don't see any php5-spl port or similar. 


Comment 2 Pav Lucistnik freebsd_committer freebsd_triage 2006-12-02 16:21:53 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pav

Which port is this about? I don't see any php5-spl port or similar.
Comment 3 m0rf 2006-12-02 23:58:08 UTC
This problem is about lang/php5 port SPL is enabled by configuring PHP
before build with attribute --enable-spl

The problem is this: when you compile PHP 5.2 with attributes
--enable-spl and --disable-all, some extensions related parts of SPL
aren't build.
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2006-12-03 00:03:20 UTC
State Changed
From-To: feedback->open

Feedback provided
Comment 5 Pav Lucistnik freebsd_committer freebsd_triage 2006-12-03 00:03:31 UTC
Responsible Changed
From-To: pav->ale

Over to maintainer of lang/php5
Comment 6 Alex Dupre freebsd_committer freebsd_triage 2007-02-09 09:14:26 UTC
State Changed
From-To: open->closed

Fixed, add simplexml dependency to spl.