php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21071 PHP.exe goes into infinite loop when executing Java
Submitted: 2002-12-17 14:46 UTC Modified: 2003-08-20 23:58 UTC
Votes:2
Avg. Score:4.5 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: stuart at myrddraal dot demon dot co dot uk Assigned:
Status: No Feedback Package: Java related
PHP Version: 4.3.0RC3 OS: Windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
31 - 19 = ?
Subscribe to this entry?

 
 [2002-12-17 14:46 UTC] 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)
                {
                }
 
        }
}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-08-20 23:58 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 08 02:01:32 2024 UTC