Bug #17112: httpd hangs on stress test xslt parsing
| From: | andreas dot schmitz at as-dataservice dot de | Date: | Thu, 09 May 2002 09:31:00 +0000 |
| Subject: | Bug #17112: httpd hangs on stress test xslt parsing | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-7298@lists.php.net to get a copy of this message | ||
From: andreas.schmitz@as-dataservice.de
Operating system: linux 2-2-16
PHP version: 4.2.0
PHP Bug Type: XSLT related
Bug description: httpd hangs on stress test xslt parsing
My Server: http://www.as-dataservice.de/phpinfo.php
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="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html><head></head><body>
<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:for-each>
</body></html>
</xsl:template>
<xsl:template match="as-cms/body">
<xsl:for-each select="menu">
<font size="3"><xsl:value-of select="@name" /></font><br
/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
I hope, this description will help you.
Greetings
Andreas
--
Edit bug report at http://bugs.php.net/?id=17112&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17112&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17112&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17112&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17112&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17112&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17112&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17112&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17112&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17112&r=globals