php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29225 java Extention is not availabe
Submitted: 2004-07-17 13:18 UTC Modified: 2004-11-08 12:27 UTC
Votes:14
Avg. Score:4.9 ± 0.5
Reproduced:13 of 13 (100.0%)
Same Version:7 (53.8%)
Same OS:10 (76.9%)
From: php4web at php4web dot com Assigned:
Status: Wont fix Package: Java related
PHP Version: 5.0.0 OS: windows xp professtional
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
25 + 4 = ?
Subscribe to this entry?

 
 [2004-07-17 13:18 UTC] php4web at php4web dot com
Description:
------------
this is no Java integration at all in PHP 5 !
there are dll but there no instrction or installation note 
the setting from php.ini for Java is removed !


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-05 17:11 UTC] mz at salon-margit dot de
java integration failure using:
-------------------------------
*CLI Mode
*OS: Windows 2000 pro SP4
*PHP 5.0.2 (cli) (built: Sep 24 2004 01:25:41)
*Java(TM) 2 Runtime Environment, Standard Edition
 (build 1.4.2_05-b04)
 Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)
--
PHP.ini:
extension=php_java.dll
--
Test via Docu-Example:

<?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 $formatter->format(new Java('java.util.Date'));
?>
--
Results in: (translated)

(Windows) Program failure:
php.exe caused an error and got shut down.
Restart the program.

A failure protocol is created.
--

PHP-Info for JAVA:

java.class.path   no value   no value 
java.home         no value   no value 
java.library      jvm.dll    jvm.dll 
java.library.path no value   no value 
--

Best Regards
     mz.
 [2004-11-08 12:27 UTC] john@php.net
The Java extension is not available in PHP 5. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC