From: Peter N. <pn...@kr...> - 2005-08-22 20:01:57
|
Hi, Jost Boekemeier schrieb: > Hi, > > a preview version of 2.0.8 is available for download: [...] > (The above download is for windows only, on Linux/Unix > please download the code directly from the CVS > repository: cvs -z3 > -d:pserver:ano...@cv...:/cvsroot/php-java-bridge > co php-java-bridge) OK this is first time I managed to get the .war successful deployed in tomcat4. ;) I just noticed one strange thing in handling the null-object: --------- test.php5/instanceof.php --------- If using *mod_php in apache* (using a browser and point it to tests.php5/instanceof.php) while connecting either via java_socketname=/var/run/.php-java-bridge_socket or via java_server=on $list->add(null) has problems: Fatal error: Uncaught [o:"java.lang.Exception: Invoke failed: [o:"[0, one]"]->add((java.lang.Object)o:"null"). Cause: java.lang.NullPointerException"] thrown in /var/www/lokal/test/php-java-bridge/tests.php5/instanceof.php on line 16 php5-cli does not have this problem for some reason. almost same thing seems to apply to ------ examples/php+jsp/oops.php ----- But this one *neither php5-cli or mod_php* like: error: Uncaught [o:"java.lang.Exception: CreateInstance failed: new java.lang.String(([B)o:"null"). Cause: java.lang.NullPointerException"] thrown in /var/www/lokal/test/php-java-bridge/examples/php+jsp/oops.php on line 6 first one seems kind of strange to me... FYI I am using php5.0.4 Cheers, Peter |