#21071 [NEW]: PHP.exe goes into infinite loop when executing Java
| From: | stuart at myrddraal dot demon dot co dot uk | Date: | Tue, 17 Dec 2002 20:46:20 +0000 |
| Subject: | #21071 [NEW]: PHP.exe goes into infinite loop when executing Java | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-27944@lists.php.net to get a copy of this message | ||
From: stuart@myrddraal.demon.co.uk
Operating system: Windows XP
PHP version: 4.3.0RC3
PHP Bug Type: Java related
Bug description: PHP.exe goes into infinite loop when executing Java
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 bug report at http://bugs.php.net/?id=21071&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21071&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21071&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21071&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21071&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21071&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21071&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21071&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21071&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21071&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21071&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21071&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21071&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21071&r=isapi