#18952 [NEW]: java does not unload
| From: | alan at elhogar dot com | Date: | Fri, 16 Aug 2002 23:21:54 +0000 |
| Subject: | #18952 [NEW]: java does not unload | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-17058@lists.php.net to get a copy of this message | ||
From: alan@elhogar.com
Operating system: WIN2000
PHP version: 4.2.2
PHP Bug Type: Reproducible crash
Bug description: java does not unload
If I try the following code it only executes once and then then when I
click refresh it doesnt execute, and then when I click refresh again, it
does execute again.
<?
error_reporting(255);
// get instance of Java class java.lang.System in PHP
$system = new Java('java.lang.System');
// demonstrate property access
print 'Java version='.$system->getProperty('java.version').'
<br>';
print 'Java vendor=' .$system->getProperty('java.vendor').'
<br>';
print '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");
print $formatter->format(new Java('java.util.Date'));
?>
this is the dislay I get
Java version=1.3.1_04
Java vendor=Sun Microsystems Inc.
OS=Windows 2000 5.0 on x86
Friday, August 16, 2002 at 11:17:37 PM Greenwich Mean Time
Warning: Unknown list entry type in request shutdown (0) in Unknown on
line 0
Warning: Unknown list entry type in request shutdown (0) in Unknown on
line 0
Warning: Unknown list entry type in request shutdown (0) in Unknown on
line 0
then when I click refresh I get
Fatal error: Unable to create Java Virtual Machine in
E:\home\websites\html\testjava.php on line 5
then when I click refresh again then it goes back to the original
display.
It looks like java is not unloading or something like that
--
Edit bug report at http://bugs.php.net/?id=18952&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=18952&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=18952&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18952&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18952&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18952&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18952&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18952&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18952&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18952&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18952&r=globals