php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28415 Apache crashes on importStylesheet call
Submitted: 2004-05-16 14:26 UTC Modified: 2004-05-29 01:00 UTC
From: bgdeveloper at mail dot bg Assigned:
Status: No Feedback Package: XSLT related
PHP Version: 5CVS-2004-05-16 (dev) OS: Windows 2003 Server Enterprice
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-05-16 14:26 UTC] bgdeveloper at mail dot bg
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); 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-18 14:19 UTC] derick@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
 [2004-05-29 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: Thu Apr 18 18:01:28 2024 UTC