#621: XIncludes in sandbox-tags result in PHP segfaults
----------------------------+-----------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: dominik
Type: defect | Status: new
Priority: normal | Milestone:
Component: config | Version: 0.11.0
Severity: normal | Keywords: xinclude output_types sandbox
segfault
----------------------------+-----------------------------------------------
When using local xincludes in the sandbox-tag in output_types.xml, the php
process will segfault.
This problem may be related to certain php and libxml-versions only (my
config is PHP-5.2.5 and libxml-2.6.30). Since the xinclude is somehow
nested (the sandbox is xincluded in output types, within the sandbox there
is another xinclude - see attached output_types.xml). When parsing the
layer-nodes in AgaviConfigParser::parseNodes (invoked through
AgaviOutputTypeConfigHandler::execute), the xincluded layers have a node
type of 19 which is named XML_XINCLUDE_START in libxml2's tree.h but not
imported in PHP (the highest documented constant is named
XML_NAMESPACE_DECL with a value of 18). When accessing this node PHP
crashes.
To work around this problem you may call $doc->xinclude() twice in
AgaviXMLConfigParser::load (line 150, see attached
AgaviXMLConfigParser.patch). I'm not quite shure if this problem will fade
away in future PHP versions handling XML_XINCLUDE_START or if this will
turn out permanent and should therefore be addressed in Agavi.
Keep up the great work!
Chris
--
Ticket URL: <http://trac.agavi.org/ticket/621>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets