#23128 [Fbk->Opn]: PHP crashes when using <xsl:sort> in some cases
| From: | ed at avi dot ru | Date: | Mon, 28 Apr 2003 12:50:53 +0000 |
| Subject: | #23128 [Fbk->Opn]: PHP crashes when using <xsl:sort> in some cases | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38548@lists.php.net to get a copy of this message | ||
ID: 23128
User updated by: ed at avi dot ru
Reported By: ed at avi dot ru
-Status: Feedback
+Status: Open
Bug Type: XSLT related
Operating System: Windows 98
PHP Version: 4.3.2RC1
New Comment:
Yes, the crush was reprodused width sabcmd utility.
Previous Comments:
------------------------------------------------------------------------
[2003-04-26 13:46:43] msopacua@php.net
Are you able to reproduce this with the sabcmd utility that comes with
Sablotron?
------------------------------------------------------------------------
[2003-04-23 06:31:41] ed at avi dot ru
XML file (test.xml):
<?xml version="1.0"?>
<root>
<node id="3" />
<node id="1" />
<node id="2" />
<node id="4" />
</root>
XSL-template (test.xsl):
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/root">
<xsl:for-each select="node">
<xsl:sort select="@id" data-type="text" />
<xsl:value-of select="@id" />
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
PHP script which causes the crash:
<?PHP
$xslt = xslt_create ();
xslt_set_base ($xslt, sprintf ('file://%s/', dirname
($_SERVER['SCRIPT_FILENAME'])));
print (xslt_process ($xslt, 'test.xml', 'test.xsl'));
xslt_free ($xslt);
?>
------------------------------------------------------------------------
[2003-04-23 03:59:22] sniper@php.net
Please provide a short and self-contained example which
causes the crash.
------------------------------------------------------------------------
[2003-04-10 09:35:28] ed at avi dot ru
The problem remains. Òíå php doesn't crash now, but seems to hang or
something like this. The page doesn't load, and the system becomes
overloaded until the Apache process is killed (PHP runs as ISAPI
module).
------------------------------------------------------------------------
[2003-04-09 16:49:09] sniper@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
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/23128
--
Edit this bug report at http://bugs.php.net/?id=23128&edit=1