From:             mcharlesrk at yahoo dot com
Operating system: windows 2000
PHP version:      5.2.0
PHP Bug Type:     Java related
Bug description:  PHP Java Integration

Description:
------------
When i add jvm.dll in my php.ini, my sample.php throws 500 internal server
error.

I am using php 5.2.0 , pecl 5.2.0 , jdk 1.5.0_04, apache 2.2.3

[EMAIL PROTECTED] says "The Java extension is not available in PHP 5." 

is it true???

my php.ini 
-----------
extension=php_java.dll
[Java]
java.class.path = "C:\php\ext\php_java.jar;
E:\Java\jdk1.5.0_04\jre\lib;E:\Java\jdk1.5.0_04;D:\charles\projects\java"
java.home = "E:\Java\jdk1.5.0_04"
java.library.path="c:\php\ext;E:\Java\jdk1.5.0_04\jre\lib"
java.library=E:\Java\jdk1.5.0_04\jre\bin\server\jvm.dll




Reproduce code:
---------------
sample.php
-----------
<?php
  $system = new Java("java.lang.System");
  print "Java version=".$system->getProperty("java.version")." <br>\n";
  print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
  print "OS=".$system->getProperty("os.name")." ".
$system->getProperty("os.version")." on ".
$system->getProperty("os.arch")." <br>\n"; $formatter = new
Java("java.text.SimpleDateFormat","EEEE, MMMM dd, yyyy 'at' h:mm:ss a
zzzz");
  print $formatter->format(new Java("java.util.Date"))."\n";
?>

Expected result:
----------------
javav version = xx
java vendor = xxx
OS = xx


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

Reply via email to