From: [EMAIL PROTECTED] Operating system: Windows 98 PHP version: 4.3.0 PHP Bug Type: Reproducible crash Bug description: Sablot dll crashing on xsl sort statement
When I use the Sablot.dll which comes with php 4.3, this example crashes on the xsl:sort command. However, when I use a Sablot.dll dated March 8, 2002, the sort works perfectly. This test uses 3 files: stock_test.html, stock_test.xml, stock_test.xsl stock_test.html <? // Create an XSLT processor $xsltHandle = xslt_create(); // Perform the transformation $html = xslt_process($xsltHandle, 'htdocs/test/stock_test.xml', 'htdocs/test/stock_test.xsl'); // Detect errors if (!$html) die('XSLT processing error: '.xslt_error($xsltHandle)); // Destroy the XSLT processor xslt_free($xsltHandle); // Output the resulting HTML echo $html; ?> stock_test.xml <?xml version="1.0" ?> <!DOCTYPE nasdaqamex-dot-com SYSTEM "NasdaqDotCom.dtd"> <nasdaqamex-dot-com> <equity-quote symbol="QQQ" ilx-symbol="QQQ" hyperfeed-symbol="QQQ" telesphere-symbol="QQQ" cusip="63110010"><issue-name>Nasdaq-100 Index Tracking Stock</issue-name><market-status>O</market-status><market-center-code>AMEX</market-center-code><issue-type-code>Exchange Traded Fund</issue-type-code><todays-high-price>31.09</todays-high-price><todays-low-price>29.5</todays-low-price><fifty-two-wk-high-price>51.05</fifty-two-wk-high-price><fifty-two-wk-low-price>23.88</fifty-two-wk-low-price><last-sale-price>29.69</last-sale-price><net-change-price>-1.26</net-change-price><net-change-pct>-4.07%</net-change-pct><share-volume-qty>106564400</share-volume-qty><previous-close-price>30.95</previous-close-price><best-bid-price>0</best-bid-price><best-ask-price>0</best-ask-price><best-bid-price session-type="AfterHours">0</best-bid-price><best-ask-price session-type="AfterHours">0</best-ask-price><current-pe-ratio>N/A</current-pe-ratio><total-outstanding-shares-qty>622750000</total-outstanding-shares-qty><current-yield-pct>0</current-yield-pct><earnings-actual-eps-amt>0</earnings-actual-eps-amt><cash-dividend-amt>0</cash-dividend-amt><cash-dividend-ex-date>19691231</cash-dividend-ex-date><sp500-beta-num>2.11</sp500-beta-num><trade-datetime>20020510 15:56:03</trade-datetime><issuer-address-line1-txt>Nasdaq Investment Product Services, Inc.</issuer-address-line1-txt><issuer-address-line3-txt>1735 K Street, N.W.</issuer-address-line3-txt><issuer-city-state-zip-txt>Washington DC 20006 United States</issuer-city-state-zip-txt><issuer-phone-num> 202-496-2552</issuer-phone-num><issuer-web-site-url>http://www.nasdaq.com/asp/indexshares.asp?symbol=QQQ</issuer-web-site-url><issuer-logo-url>http://a676.g.akamaitech.net/f/676/838/1h/nasdaq.com/logos/QQQ.GIF</issuer-logo-url><trading-status>ACTIVE</trading-status><market-capitalization-amt>18489447500</market-capitalization-amt><option-root-symbol symbol=""/></equity-quote><equity-quote symbol="NT" ilx-symbol="NT" hyperfeed-symbol="NT" telesphere-symbol="NT" cusip="656568102"><issue-name>Nortel Networks Corp</issue-name><market-status>O</market-status><market-center-code>NYSE</market-center-code><issue-type-code>Common Stock</issue-type-code><todays-high-price>2.89</todays-high-price><todays-low-price>2.64</todays-low-price><fifty-two-wk-high-price>16.2</fifty-two-wk-high-price><fifty-two-wk-low-price>2.63</fifty-two-wk-low-price><last-sale-price>2.75</last-sale-price><net-change-price>-0.10</net-change-price><net-change-pct>-3.51%</net-change-pct><share-volume-qty>10266100</share-volume-qty><previous-close-price>2.85</previous-close-price><best-bid-price>0</best-bid-price><best-ask-price>0</best-ask-price><best-bid-price session-type="AfterHours">0</best-bid-price><best-ask-price session-type="AfterHours">0</best-ask-price><current-pe-ratio>NE</current-pe-ratio><total-outstanding-shares-qty>3204653000</total-outstanding-shares-qty><current-yield-pct>0</current-yield-pct><earnings-actual-eps-amt>-7.12</earnings-actual-eps-amt><cash-dividend-amt>0</cash-dividend-amt><cash-dividend-ex-date>19691231</cash-dividend-ex-date><sp500-beta-num>2.17</sp500-beta-num><trade-datetime>20020510 15:56:03</trade-datetime><issuer-web-site-url>http://www.nortelnetworks.com</issuer-web-site-url><trading-status>ACTIVE</trading-status><market-capitalization-amt>8812795750</market-capitalization-amt><option-root-symbol symbol=""/></equity-quote> </nasdaqamex-dot-com> stock_test.xsl <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head> <title>Stock Information from Nasdaq</title> </head> <body bgcolor="#cccccc"> <div align="center"><h1>Stock Information from <font color="#006600">Nasdaq</font></h1> <table cellspacing="12"> <tbody> <th> <tr> <td><b><u>Name</u></b></td> <td><b><u>Last Sale</u></b></td> </tr> </th> <xsl:for-each select="//equity-quote"> <xsl:sort select="@symbol" /> <tr> <td> <font color="#0033cc"><xsl:apply-templates select="@symbol" /></font> </td> <td align="center"> <xsl:apply-templates select="last-sale-price" /> </td> </tr> </xsl:for-each> </tbody> </table></div> </body> </html> </xsl:template> </xsl:stylesheet> -- Edit bug report at http://bugs.php.net/?id=21539&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21539&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21539&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21539&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21539&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21539&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21539&r=support Expected behavior: http://bugs.php.net/fix.php?id=21539&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21539&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21539&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21539&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21539&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21539&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21539&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21539&r=gnused