#33718 [Bgs]: Problems with Java PHP integration

2005-07-17 Thread tuta at digi dot com dot br
 ID:   33718
 User updated by:  tuta at digi dot com dot br
 Reported By:  tuta at digi dot com dot br
 Status:   Bogus
 Bug Type: Java related
 Operating System: Windows 2000
 PHP Version:  5.0.4
 New Comment:

Thank you!


Previous Comments:


[2005-07-18 02:38:29] [EMAIL PROTECTED]

Report bugs about PECL extensions at http://pecl.php.net/




[2005-07-16 04:35:20] tuta at digi dot com dot br

Description:

Hi All,
I just downloaded(few hours ago) PHP 5.04  for Windows
(php-5.0.4-Win32.zip) + PECL(pecl-5.0.4-Win32.zip), 
and i was trying to make PHP and talk with some of my Java Classes.  I
created some simple files just to start, something like this:

PHP 
Filename : java.php

?
 $j = new Java(Hello);
 print  $j-hello(All);
?


Java: 
Filename: Hello.java

class Hello {
public String hello(String name) {
  return Hello  + name + , how are you?;
 }
}

Here is my php.ini

[java]
java.class.path= c:\php\ext\php_java.jar;c:\php\ext;c:\java_classes
java.home= C:\jdk1.5.0\jre\bin\
java.library.path= c:\php\ext
java.library= C:\jdk1.5.0\jre\bin\server\jvm.dll

When i tried to run my java.php on my Apache Server(2.0.53 Win32), my
web browser(FireFox) showed me the message The Document Contains no
Data, and i
found many messages Parent: child process exited with status
3221225477 -- Restarting. on my Apache's log file.
I also tried to run java.php from console(using php.exe java.php) ,
but without any success and without any error message, the php.exe just
jump to another 
line without complains.  So, i tried to spy the process using some
debug tools  to figure it out what was the problem, and i found it
inside php_java.jar  
file and here it is:
- There is a little space after the name php_java in the file
reflect.properties(line library=php_java), and when the
reflect.class tries to find 
the lib.( System.loadLibrary(bundle.getString(library) --
reflect.java  ); it will always look for php_java .dll(with space!).
I fixed manually my reflect.properties and 
everything is fine now. I hope this information could help someone with
the same problem.

Best Regards,

Tuta Muniz






-- 
Edit this bug report at http://bugs.php.net/?id=33718edit=1


#33718 [NEW]: Problems with Java PHP integration

2005-07-15 Thread tuta at digi dot com dot br
From: tuta at digi dot com dot br
Operating system: Windows 2000
PHP version:  5.0.4
PHP Bug Type: Java related
Bug description:  Problems with Java  PHP integration

Description:

Hi All,
I just downloaded(few hours ago) PHP 5.04  for Windows
(php-5.0.4-Win32.zip) + PECL(pecl-5.0.4-Win32.zip), 
and i was trying to make PHP and talk with some of my Java Classes.  I
created some simple files just to start, something like this:

PHP 
Filename : java.php

?
 $j = new Java(Hello);
 print  $j-hello(All);
?


Java: 
Filename: Hello.java

class Hello {
public String hello(String name) {
  return Hello  + name + , how are you?;
 }
}

Here is my php.ini

[java]
java.class.path= c:\php\ext\php_java.jar;c:\php\ext;c:\java_classes
java.home= C:\jdk1.5.0\jre\bin\
java.library.path= c:\php\ext
java.library= C:\jdk1.5.0\jre\bin\server\jvm.dll

When i tried to run my java.php on my Apache Server(2.0.53 Win32), my
web browser(FireFox) showed me the message The Document Contains no
Data, and i
found many messages Parent: child process exited with status 3221225477
-- Restarting. on my Apache's log file.
I also tried to run java.php from console(using php.exe java.php) ,
but without any success and without any error message, the php.exe just
jump to another 
line without complains.  So, i tried to spy the process using some debug
tools  to figure it out what was the problem, and i found it inside
php_java.jar  
file and here it is:
- There is a little space after the name php_java in the file
reflect.properties(line library=php_java), and when the reflect.class
tries to find 
the lib.( System.loadLibrary(bundle.getString(library) -- reflect.java 
); it will always look for php_java .dll(with space!). I fixed manually
my reflect.properties and 
everything is fine now. I hope this information could help someone with
the same problem.

Best Regards,

Tuta Muniz


-- 
Edit bug report at http://bugs.php.net/?id=33718edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33718r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33718r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33718r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=33718r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=33718r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=33718r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=33718r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=33718r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33718r=support
Expected behavior:   http://bugs.php.net/fix.php?id=33718r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=33718r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=33718r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=33718r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33718r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=33718r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=33718r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33718r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33718r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=33718r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33718r=mysqlcfg