ID: 21071 Updated by: [EMAIL PROTECTED] Reported By: stuart at myrddraal dot demon dot co dot uk -Status: Feedback +Status: No Feedback Bug Type: Java related Operating System: Windows XP PHP Version: 4.3.0RC3 New Comment:
No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2003-08-15 08:19:36] [EMAIL PROTECTED] 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 ------------------------------------------------------------------------ [2002-12-17 14:46:20] stuart at myrddraal dot demon dot co dot uk Haven't managed to find another bug describing this ... The demonstration class (below) runs fine from the command line with JDK 1.4.1-01, from Sun's website. Run from inside PHP, from inside the stand-alone .exe, Task Manager shows PHP.exe eating up 99% CPU until I kill it off. (FYI - I'm using this class with Saxon 6.5.2, from http://saxon.sourceforge.net/) The problem is resolved by changing the line class jsr63 to public class jsr63 Thought you might want to know, in case there's a way you can trap this error and fix it. -- demonstration class -- package org.gnqs.docXP; import javax.xml.transform.*; import javax.xml.transform.stream.*; import javax.xml.transform.sax.*; import java.io.*; class jsr63 { void jsr63() { } public static void main (String[] argv) { org.gnqs.docXP.jsr63 l_oProcessor = new org.gnqs.docXP.jsr63(); l_oProcessor.doProcessXSLT(argv[0], argv[1], argv[2]); //return 0; } public void doProcessXSLT(String a_szInFile, String a_szOutFile, String a_szXSLT) { // return; System.out.println("Starting doProcessXSLT"); Transformer l_oTransform; TransformerFactory l_oFactory; StreamSource l_oXSLTSource; System.out.println("Variables created"); l_oFactory = javax.xml.transform.TransformerFactory.newInstance(); System.out.println("Factory created"); try { l_oTransform = l_oFactory.newTransformer(new StreamSource(a_szXSLT)); l_oTransform.transform(new StreamSource(a_szInFile), new StreamResult(a_szOutFile)); } catch (Exception e) { } } } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21071&edit=1