#23128 [Fbk->Opn]: PHP crashes when using <xsl:sort> in some cases
| From: | ed at avi dot ru | Date: | Thu, 10 Apr 2003 14:35:28 +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-37525@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:
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).
Previous Comments:
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
[2003-04-09 06:55:03] ed at avi dot ru
The realisation of sorting seems to be buggy in xslt extension. Let's
suppose that we have the following xml:
<?xml version="1.0"?>
<root>
<node id="1"></node>
<node id="4"></node>
<node id="2"></node>
<node id="3"></node>
</root>
We're processing these data via xslt_process(). Here's the part of xsl
file:
...
<xsl:template match="/root">
<xsl:for-each select="node">
<xsl:sort select="@id" data-type="number" />
...
</xsl:for-each>
</xsl:template>
...
It works ok. But if we remove data-type attribute from <xsl:sort> tag
or change it to "text", the PHP crashes.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23128&edit=1