From:             rohit dot keshwani at gmail dot com
Operating system: Windows XP Media Center Edition
PHP version:      5.1.4
PHP Bug Type:     Reproducible crash
Bug description:  PHP Crash while trying to use PHP/JAVA integration

Description:
------------
PHP crashes when I try create a new Java class Object. I am running on
Abyss Web Server. I have php_java.dll added in my php ini correctly, and
it shows up under php info. I have searched the internet and have found no
solution. I have checked these paths and all of them are correct and the
files exist in those directories. I know that the problem here doesn't
exist with the php_java.dll. I think it may have something to do with
jvm.dll
[java]
  java.class.path = "c:\PHP\ext\php_java.jar"
  java.home = "C:\Program Files\Java\jdk1.5.0_07"
  java.library.path = "c:\PHP\ext"
  java.library = "C:\Program
Files\Java\jdk1.5.0_07\jre\bin\server\jvm.dll"

Reproduce code:
---------------
<?php
// get instance of Java class java.lang.System in PHP
$system = new Java('java.lang.System');

// demonstrate property access
echo 'Java version=' . $system->getProperty('java.version') . '<br />';
echo 'Java vendor=' . $system->getProperty('java.vendor') . '<br />';
echo 'OS=' . $system->getProperty('os.name') . ' ' .
             $system->getProperty('os.version') . ' on ' .
             $system->getProperty('os.arch') . ' <br />';

// java.util.Date example
$formatter = new Java('java.text.SimpleDateFormat',
                     "EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");

echo "Date:".$formatter->format(new Java('java.util.Date'));
?> 

Expected result:
----------------
Java version=xxxxx
Java vendor=xxxxx
OS=xxxxx
Date:xxxxx

Actual result:
--------------
    <MATCHING_FILE NAME="ext\php_java.dll" SIZE="28735"
CHECKSUM="0x91046076" BIN_FILE_VERSION="5.1.2.2"
BIN_PRODUCT_VERSION="5.1.2.0" PRODUCT_VERSION="5.1.2"
FILE_DESCRIPTION="Java" COMPANY_NAME="The PHP Group" PRODUCT_NAME="PHP
php_java.dll" FILE_VERSION="5.1.2.2" ORIGINAL_FILENAME="php_java.dll"
INTERNAL_NAME="php_java.dll" LEGAL_COPYRIGHT="Copyright © 1997-2005 The
PHP Group" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4"
VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x0"
LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2.2"
UPTO_BIN_PRODUCT_VERSION="5.1.2.0" LINK_DATE="06/26/2006 20:17:48"
UPTO_LINK_DATE="06/26/2006 20:17:48" VER_LANGUAGE="English (United States)
[0x409]" />

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

Reply via email to