From:             cross_phil at hotmail dot com
Operating system: Windows XP
PHP version:      5.0.0RC3
PHP Bug Type:     SimpleXML related
Bug description:  Creating simple xml element from dom::load does not work.

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 bug report at http://bugs.php.net/?id=28834&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28834&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28834&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28834&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28834&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28834&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28834&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28834&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28834&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28834&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28834&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28834&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28834&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28834&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28834&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28834&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28834&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28834&r=float

Reply via email to