Hi Thomas,
first of all thank you very much for the feedback.
Since version 4.1.8 the pure PHP implementation also supports INET and INET_LOCAL, see the NEWS
file.
The difference between SERVLET/SERVLET_LOCAL and INET/INET_LOCAL is that the former reads
meta-information like X_JAVABRIDGE_OVERRIDE_HOSTS and X_JAVABRIDGE_OVERRIDE_REDIRECT. This
information is used to select the fastest available channel, which is INET/INET_LOCAL on windows
and named pipes on Unix.
In theory the INET/INET_LOCAL channel should be faster, because the SERVLET* "meta" channel
requires one additional round-trip. But on modern operating systems this shouldn't be a problem.
> Why has the version to be > 5.1.2 ? Only too old, any bugs ?
Well, the functionality needed by the bridge is there, but all PHP 5 versions < 5.1.2
have serious problems. Just remove the check from Java.inc, run the "bench" test on 5.0.4 and
you'll see what I mean. :)
> Is it possible to adapt the pure PHP implementation for PHP4 ?
try/catch etc. is not available in PHP4. The binary download contains a php_java.dll for PHP4,
which could be used as follows:
// check if the PHP4 extension is loaded. Otherwise load Java.inc
if(!extension_loaded("java")) require_once("java/Java.inc");
[compiling ]
> 3) Binaries for PHP 5.2.x
Yes, this is possible. PHP 5.2 and all future versions of PHP are supported. IBM has a
tutorial which describes how to compile PHP 5 and PHP 6 on windows. Instructions how to
compile the bridge against PHP 5 or 6 on windows can be found at the end of the INSTALL document.
However, you don't need to compile the C code. It is neither faster nor does it add
additional features[1] except for JVM launching.
Regards,
Jost Boekemeier
[1] This may change in the future, although I'd prefer to add Proxy and ProxyException
interfaces directly to the PHP core.
__________________________________ Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever
|