php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28834 Creating simple xml element from dom::load does not work.
Submitted: 2004-06-18 18:13 UTC Modified: 2004-07-24 01:00 UTC
From: cross_phil at hotmail dot com Assigned:
Status: No Feedback Package: SimpleXML related
PHP Version: 5.0.0RC3 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cross_phil at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-06-18 18:13 UTC] cross_phil at hotmail dot com
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-14 01:29 UTC] chregu@php.net
Works for me.
Can you try with the 5.0.0 release? And which libxml2 
version are you using?
 [2004-07-24 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC