Menu

[r691]: / branches / Release-5-1-2 / php-java-bridge / tests.php5 / function_java.php  Maximize  Restore  History

Download this file

19 lines (13 with data), 462 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
<?php
// check if the java() function caches the allocated classes
require_once("http://127.0.0.1:8080/JavaBridge/java/JavaBridge.inc");
$here=realpath(dirname($_SERVER["SCRIPT_FILENAME"]));
if(!$here) $here=getcwd();
java_require("$here/array.jar");
$c = java_values (java("Array")->hashCode());
@java_reset();
//java_require("$here/array.jar");
$c1 = java_values (java("Array")->hashCode());
if($c1!=$c) die("test failed");
echo "test okay\n";
exit(0);
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.