|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #17112 PHP xslt support needs apache to be compiled with --disable-rule=EXPAT
Submitted: 2002-05-09 05:30 UTC Modified: 2002-09-11 11:03 UTC
Avg. Score:4.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: andreas dot schmitz at as-dataservice dot de Assigned:
Status: No Feedback Package: Documentation problem
PHP Version: 4.2.0 OS: linux 2-2-16
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: andreas dot schmitz at as-dataservice dot de
New email:
PHP Version: OS:


 [2002-05-09 05:30 UTC] andreas dot schmitz at as-dataservice dot de
My Server:

if I call $xsl = xslt_process($xh,'arg:/_xml','arg:/_xsl',NULL,$arguments); this works fine and I'll get the xslt result. But when I do a stress test (sometimes only 10 fast reloads of the page), there are manny httpd prozesses, which get all the cpu usage and are killed after max_execution_time (php.ini).

-- Here the XML Code

<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
	 <as-cms><header><variables><string name="Adresse">Andreas Schmitz, Kastanienallee 24, 54662 Speicher</string><string name="testvar">xtest</string></variables></header><body><menu id="102" tempname="temp1" name="Prod?ukte"><text style="atesttemplate">test</text><ul style="atesttemplate"><li>Aufz?hlung 1</li></ul><menu id="105" name="Haushaltsger?te"><menu id="123" name="Waschmaschine"></menu></menu><menu id="122" name="Elektro"></menu></menu><menu id="121" name="Profil"></menu></body></as-cms>

-- Here the XSL code

<?xml version="1.0" encoding="iso-8859-1"?> 
<xsl:stylesheet version="1.0" xmlns:xsl=""> 
<xsl:template match="/"> 
  <xsl:apply-templates select="as-cms/body" /> 
  <xsl:for-each select="/as-cms/body//menu[@tempname]"> 
   <font size="5"><xsl:value-of select="@name" /></font><br /> 
<xsl:template match="as-cms/body"> 
	<xsl:for-each select="menu"> 
	 <font size="3"><xsl:value-of select="@name" /></font><br /> 

I hope, this description will help you.




Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-09 10:41 UTC] andreas dot schmitz at as-dataservice dot de
Hi again,

it was my mistake. I have forgotten to recompile apache with --disable-rule=EXPAT, to disable the expat-lite version in apache. Can someone add these hint to the XSLT Documentation.



 [2002-05-09 16:49 UTC]
Reopening, documentation problem then.
 [2002-07-02 16:57 UTC]
Per default the apache searches the system for an expat-lib and if it finds one, this lib is used. Could you please verify, what library is used by your apache, if you configure it without giving an expat-rule? I couldn't verify this specific problem on my RedHat 7.3 system with expat-1.95.2-2.

 [2002-09-11 11:03 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Oct 21 21:01:23 2020 UTC