php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37474 PHP + JAVA + Apache crashes with "access violation" error
Submitted: 2006-05-17 10:51 UTC Modified: 2006-05-17 10:53 UTC
From: pedropinto at gmail dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.1.4 OS: WinXP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pedropinto at gmail dot com
New email:
PHP Version: OS:

 

 [2006-05-17 10:51 UTC] pedropinto at gmail dot com
Description:
------------
Hi,

I've a xampp installation, in WinXP, with:
Apache 2 
PHP 5.1.4

php.ini settings:
java.class.path = "C:\Program Files\xampp\php\java\php_java.jar"
java.home = "C:\Program Files\Java\j2re1.4.2_03"
;java.library = "C:\Program Files\Java\j2re1.4.2_03\bin\client\jvm.dll"
java.library = "C:\Program Files\Java\j2re1.4.2_03\bin\server\jvm.dll"
java.library.path = "C:\Program Files\xampp\php\ext"

When a execute the script listed I get a Apache.exe error, "access violation" kind of error.

Can anyone help me, please!

Thanks in advance!


Reproduce code:
---------------
<?
  $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";
?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-17 10:53 UTC] tony2001@php.net
Please report this problem to PHP-Jave bridge developers.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC