|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-26 08:12 UTC] sander@php.net
[2002-09-27 12:31 UTC] cb at designassembly dot de
[2002-10-05 01:53 UTC] iliaa@php.net
[2002-10-13 13:05 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Feb 09 18:00:01 2026 UTC |
System: Apache/1.3.24 PHP running as SAPI-module (Binary from php.net) simple script, which causes segfault <? /*part 1 scan xml document*/ $xml="<?xml version=\"1.0\"?><para><element>content 1</element><element>content 2</element><element>content 3</element><element>content 4</element></para>"; $document = xmltree($xml); $ctx = xpath_new_context($document); $result = xpath_eval($ctx, "//element"); print_r($result); /*part 2 create new xml document*/ $doc = domxml_new_doc("1.0"); $root = $doc->append_child($doc->create_element("para")); for($i = 0; $i < 200; $i++){ $element = $doc->create_element("element"); $element->set_content("content ".$i); $root->append_child($element); } echo "<PRE>".htmlentities($doc->dump_mem(true))."</PRE>"; ?> Description: the content is shown in the browser, but apache causes a segfault in module php_domxml.dll, adress 0x00001b03 as likely in bug 16888. When you first create a xml document and parse second it runs without a segfault. This code causes no problems with PHP 4.1.2. Modules: php_domxml, php_xslt, php_iconv, php_gd and mysql