From:             thx1011 at yahoo dot com
Operating system: Win XP Pro SP1
PHP version:      5.0.3
PHP Bug Type:     Java related
Bug description:  Instanciating a java object using: new Java("...") gives an 
access violation

Description:
------------
Configured Apache 2.0.51+PHP 5.0.3+JVM 1.4.2-b28 on Win XP pro sp1
(development machine)
Try to run simple sample.
Always have a crash with access violation on php.exe (running from command
line) or running from Apache.

Already double checked all configuration. JVM seams to load fine (using
filemon from sysinternals).

Already used jre from SDK with same results and using the client and
server jvm.dll

>From Apache already tried to run as a SAPI and CGI module. 
But running PHP in standalone mode gives the error, so it's not apache
related.

Reproduce code:
---------------
<!doctype html public "-//W3C//DTD HTML 4.01//EN">

<html>

   <head>
      <title>Java test</title>
      <meta http-equiv="generator" content="PHP Designer 2005" />
   </head>

   <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080"
alink="#FF0000">

<?

 $system = new Java("java.lang.System");


 echo "Java version: " . $system->getProperty('java.version') .
"<BR><BR>";

 ?>


   </body>
</html>


 

Expected result:
----------------
A page with "JAva version: 1.4.2-b28"

Actual result:
--------------
Nothing. Just the first HTML lines, before instatianing the Java class.


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

Reply via email to