Re: [PHP4BETA] Php4.0 and Cocoon

From: Date: Fri, 02 Jun 2000 15:38:04 +0000
Subject: Re: [PHP4BETA] Php4.0 and Cocoon
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-16091@lists.php.net to get a copy of this message
> > so you got working XT + php, if you are, then can you please > > send me the full working copy of sample code and what are the software > > I need to run that sample. > > Not really, we didn't manage to spawn objects from java classes. > Any Hints on that? As part of my initial experiments on PHP4/XSLT integration I tried to get the ext/java module working on Solaris. I had a very hard time of it - a few hints : - in java.c, replace all occurrences of "JAVALIB" with "W32_JAVALIB". The name conflicts with "JAVALIB" as used in the build process - add "-L /usr/java/lib" somewhere in config.m4 (sorry I can't be more precise; I ended up doing builds mostly by hand), otherwise ld.so complains of undefined symbols - the module is very sensitive about values entered in php.ini, esp. (for some reason) the java.class.path entry. Here's what my setup looked like : [java] java.class.path=/usr/home/laurent/src/php-4.0.0/ext/java/php_java.jar java.library.path=/usr/home/laurent/src/php-4.0.0/modules/ extension_dir=/usr/home/laurent/src/php-4.0.0/modules/ extension=/usr/home/laurent/src/php-4.0.0/modules/libphp_java.so At this point I was able to run through the example "jver.php". However, anything a bit more complex than the sample code in jver.php broke everything. Even calling toString() on something as "simple" as the Properties returned by System.getProperties() didn't work. Also, I ended up questioning the value of creating a whole new JVM for every httpd process - sour grapes, you might say... But given that the idea is to go a step beyond my current setup (mod_jserv plus Saxon plus a small servlet) toward something more "organically" integrated into PHP4 for performance reasons, ext/java doesn't look too good. At present (as mentioned in another thread) I am more optimistic about pulling in an XSLT processor on top of ext/domxml. Enjoy, ======================================== Laurent Bossavit - Ingénieur R&D >>> laurent@mmania.com <<< >> ICQ#39281367 << MultiMania http://www.multimania.fr/ ========================================

« previous php.version4 (#16091) next »