ID: 28834
Updated by: [EMAIL PROTECTED]
Reported By: cross_phil at hotmail dot com
-Status: Open
+Status: Feedback
Bug Type: SimpleXML related
Operating System: Windows XP
PHP Version: 5.0.0RC3
New Comment:
Works for me.
Can you try with the 5.0.0 release? And which libxml2
version are you using?
Previous Comments:
------------------------------------------------------------------------
[2004-06-18 18:13:57] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=28834&edit=1