From: jiangcat at gmail dot com Operating system: Centos 5.2 PHP version: 5.2.11 PHP Bug Type: XSLT related Bug description: XSLT generates strange result
Description: ------------ XSLT processor occasionally generates improper result with the XML and XSL data inputted. Even worse, it happens with out any sign or regular operation, which means I can't reproduce this bug. With the same XML + XSL, it gives a perfect result sometimes, but occationally, a buggy result. The reproduce code is just an idea of what's happening, cuz the actual code I'm running is way too long to submit here. Please ask for it if you could identify this as a BUG, and I'll submit further info. Reproduce code: --------------- XML: ... <root> <a>1</a> <b>2</b> </root> ... XSL: ... <script type="text/javascript"> <for-each select="/root/*"> SomeHash.set('<xsl:value-of select="name()" />', <xsl:value-of select="." />); </for-each> </script> ... Expected result: ---------------- <script type="text/javascript"> SomeHash.set('a', 1); SomeHash.set('b', 2); </script> Actual result: -------------- The result could be such a mass SOMETIMES: <script type="text/javascript"> SomeHash.set('a', 1b2; </script> -- Edit bug report at http://bugs.php.net/?id=50280&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50280&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50280&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50280&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50280&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50280&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50280&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50280&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50280&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50280&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50280&r=support Expected behavior: http://bugs.php.net/fix.php?id=50280&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50280&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50280&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50280&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50280&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50280&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50280&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50280&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50280&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50280&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50280&r=mysqlcfg