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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bgdeveloper at mail dot bg
New email:
PHP Version: OS:

 

 [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

Pull Requests

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 Dec 26 17:01:31 2024 UTC