php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5619 java-class call fails and prints a warning
Submitted: 2000-07-15 11:11 UTC Modified: 2000-08-13 20:37 UTC
From: cveld at bigfoot dot com Assigned: rubys (profile)
Status: Closed Package: Misbehaving function
PHP Version: 4.0.1pl2 OS: win32
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: cveld at bigfoot dot com
New email:
PHP Version: OS:

 

 [2000-07-15 11:11 UTC] cveld at bigfoot dot com
Please add proper configuration-help to the php_java.dll distribution.

I use jdk 1.2.2 and jre 1.2.2. 

I want to see the source of php_java.dll if I may.

How do I use user-defined java-classes in php?

The warning that was generated:
Warning: ? ? in c:\src\httpd\docs\javaext\jver.php on line 21

the code I used:
  $test= new Java("Test", "test");

and the java-class:
public class Test {
	String s;
	public Test(String s) {
		this.s= s;
	}

	public String gets() { return s; }
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-27 19:49 UTC] rubys@php.net
Please explain "Please add proper configuration-help to the php_java.dll distribution".

The source to php_java.dll is contained in the ext/java directories of the source distribution.  You can get the source distribution either from CVS or from snaps.php.net.  Build instructions are at http://www.php.net/version4/win32build.php.

The garbage in the warning has been fixed in CVS and will therefore be a included in 4.0.2.

Your code and class look correct - is the directory containing Test.class listed in the java.class.path directory in your php.ini?
 [2000-08-13 20:37 UTC] rubys@php.net
I believe this was resolved offline.  If this problem still exists, please reopen
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 13:01:35 2025 UTC