|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-14 01:29 UTC] chregu@php.net
[2004-07-24 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 11:00:01 2025 UTC |
Description: ------------ When I try to create a simpleXML object from a DOM import (in PHP5-RC3), it causes php-cgi.exe to crash. Windows pops up one of those "do you want to send an error report to Microsoft" dialogs. The message from the dialog is: szAppName : php-cgi.exe szAppVer : 5.0.0.0 szModName : php5ts.dll szModVer : 5.0.0.0 offset : 0004d106 Reproduce code: --------------- All I did was: $xml = DOMDocument::load("test.xml"); //works fine $sxml = simplexml_import_dom($xml); //breaks the app When I remove line 2, everything works fine. The really weird thing is that this works okay: $xml = DOMDocument::load("test.xml"); $xsl = DOMDocument::load("test.xsl"); $trans = new xsltProcessor(); $trans->importStylesheet($xsl); $sxml = simplexml_import_dom($trans->transformToDoc($xml)); Expected result: ---------------- I just expected it to work. :) Also, I expected that creating a simpleXML from a xsltProcessor::transformDoc would work the same as creating from a DOMDocument::load. Actual result: -------------- Windows pops up one of those "do you want to send an error report to Microsoft" dialogs. The message from the dialog is: szAppName : php-cgi.exe szAppVer : 5.0.0.0 szModName : php5ts.dll szModVer : 5.0.0.0 offset : 0004d106