From: pedropinto at gmail dot com
Operating system: WinXP
PHP version: 5.1.4
PHP Bug Type: Apache2 related
Bug description: PHP + JAVA + Apache crashes with "access violation" error
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";
?>
--
Edit bug report at http://bugs.php.net/?id=37474&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=37474&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=37474&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=37474&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37474&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=37474&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37474&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37474&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37474&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37474&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37474&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=37474&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=37474&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37474&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37474&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37474&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37474&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37474&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37474&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37474&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37474&r=mysqlcfg