#23128 [NEW]: PHP crashes when using <xsl:sort> in some cases

From: Date: Wed, 09 Apr 2003 11:55:03 +0000
Subject: #23128 [NEW]: PHP crashes when using <xsl:sort> in some cases
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37430@lists.php.net to get a copy of this message
From: ed at avi dot ru Operating system: Windows 98 PHP version: 4.3.2RC1 PHP Bug Type: XSLT related Bug description: PHP crashes when using <xsl:sort> in some cases 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 bug report at http://bugs.php.net/?id=23128&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23128&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23128&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23128&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23128&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23128&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23128&r=support Expected behavior: http://bugs.php.net/fix.php?id=23128&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23128&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23128&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23128&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23128&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23128&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23128&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23128&r=gnused

« previous php.bugs (#37430) next »