Problems with Java 1.2.2 and PHP 4.0.1
| From: | Nold, Mark | Date: | Fri, 30 Jun 2000 02:45:40 +0000 |
| Subject: | Problems with Java 1.2.2 and PHP 4.0.1 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-22998@lists.php.net to get a copy of this message | ||
----------------------------------------------------------------------------
-----------------
Disclaimer: The information contained in this email is intended only for the
use of the person(s) to whom it is addressed and may be confidential or
contain legally privileged information. If you are not the intended
recipient you are hereby notified that any perusal, use, distribution,
copying or disclosure is strictly prohibited. If you have received this
email in error please immediately advise us by return email at
postmaster@normandy.com.au and delete the email document without making a
copy.
----------------------------------------------------------------------------
-----------------
Hi guys,
My setup is Win98, Java 1.2.2, Apache 1.3.12 and the latest PHP 4.0.1
(snapshot). I have several problems with the Java extension in PHP 4.0.1
1. Since changing from PHP 4.0.0 to 4.0.1 i cant seem to access classes in
the current directory. I am using the same php.ini and it works in V4 but
not V4.0.1. I have set my classpath to:
java.class.path="C:\web\php4\php_java.jar;.;C:\web\site\dev\htdocs\class"
and i am trying to call $myj = new Java("phptest"); which results in :
Warning: èt in c:\web\site\dev\htdocs\test\java\javatest.htm on line 89
The same class works fine with the same .php and .class file and php.ini in
PHP 4.0.0
2. I havent tested this in a un*x yet but Windows users seem to get useless
error/warnings filled with strange characters (see above Warning), all Java
related warnings and errors appear like this.
3. I cant seem to set java properties (instance variables?) from PHP. The
following comes back with an error (this is true of V4 and V4.0.1);
$myj = new Java("my.test.phptest");
$myj->someVar = "FOO";
results in
Warning: à;t in c:\web\site\dev\htdocs\test\java\javatest.htm on line 90
Are these windows only problems? Should i be able to set properties in Java
from PHP?
I'd be happy to raise these as bug reports if required.
Mark Nold
markn@alverstone.com.au
Systems Consultant
Change is inevitable, except from vending machines.