php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25268 xslt process causes segmentation fault
Submitted: 2003-08-27 04:56 UTC Modified: 2003-09-01 02:34 UTC
From: racca at dico dot unimi dot it Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.3.3 OS: linux 2.4
Private report: No CVE-ID: None
 [2003-08-27 04:56 UTC] racca at dico dot unimi dot it
Description:
------------
I get a segmentation fault applying an xsl stylesheet to a  
xml file, when using xsl:key.  
The same code worked well in php-4.3.1 and with xsltproc. 
With php from the command line and as apache module I get 
a segmentation.  
I can provide a tar.gz file with xsl, xml and php code  


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-27 12:18 UTC] sniper@php.net
Put that package online somewhere. And also, which sablot version are you using?

 [2003-08-27 12:20 UTC] sniper@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.


 [2003-08-27 12:33 UTC] racca at dico dot unimi dot it
I use xsl lib end not sablotron. 
You can find the tar.gz package at 
http://islab.dico.unimi.it/~gianpaolo/phpbug/files.tar.gz 
 
I updated libxml and libxslt to the latest releases. My 
config options are: 
./configure  --with-apxs --prefix=/usr/local/php-4.3.0/ 
--with-pgsql --with-dom --with-dom-xslt 
--with-dom-exslt --with-config-file-path=/etc/php/ 
--enable-track-vars --enable-trans-sid --enab 
le-ftp --with-wddx --enable-ctype --with-gd 
--with-freetype-dir=/usr --with-zlib-dir=/usr --enab 
le-gd-native-ttf --with-expat-dir=/usr --with-imagemagick
 [2003-08-30 05:32 UTC] rrichards@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

An additional option paramter has been added to the process method. It indicates wether the doc should be copied (defaults to FALSE for BC). When using xsl:key, set it to TRUE to copy the doc as there is an issue with libxslt when using keys.

change the following using the latest snaps:
$process=$xsl->process($xml);
to
$process=$xsl->process($xml, NULL, NULL, NULL, TRUE);
 [2003-09-01 02:34 UTC] racca at dico dot unimi dot it
ASAP I will try (I'm in rush for a deadline...). 
Thanks
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 01:01:30 2024 UTC