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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 11:01:31 2025 UTC