From:             bgdeveloper at mail dot bg
Operating system: Windows 2003 Server Enterprice
PHP version:      5CVS-2004-05-16 (dev)
PHP Bug Type:     XSLT related
Bug description:  Apache crashes on importStylesheet call

Description:
------------
I'm trying to start the XSLT example from
http://zend.com/php5/articles/php5-xmlphp.php#Heading17 but apache
crashes...

Apache/1.3.29 (Win32) PHP/5.0.0RC2 

I tried the last snapshot but apache crashes during starting/stoping. the
last open .DLL was php5ts.dll with the old php5ts.dll (from RC2) it was
fine.

Reproduce code:
---------------
/* load the xml file and stylesheet as domdocuments */ 
$xsl = new DomDocument(); 
$xsl->load("articles.xsl"); 
$inputdom = new DomDocument(); 
$inputdom->load("articles.xml"); 

/* create the processor and import the stylesheet */ 
$proc = new XsltProcessor(); 
$xsl = $proc->importStylesheet($xsl); 
$proc->setParameter(null,"name","value"); 

/* transform and output the xml document */ 
$newdom = $proc->transformToDoc($inputdom); 
print $newdom->saveXML(); 


Expected result:
----------------
I expected the code to execute, though it's code from official ZEND
article.

I have the .xsl and .xml files in current directory.

Actual result:
--------------
Apache crashes on the following row:
$xsl = $proc->importStylesheet($xsl); 

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

Reply via email to