Re: [PHP-DEV] Java Extension Build Method

2002-12-06 Thread Tony J. White
> Under the heading "Build java module with -ljava" you mention that there > were crashing problems because libjava.so was linked agains pthread and > apache wasn't. This is not uncommon problem for other libraries such as > oci8. You can link apache with pthread which will prevent the segfaults.

Re: [PHP-DEV] persistent java virtual machine under PHP

2002-12-06 Thread Tony J. White
> This is contrary to my experiences. But we have discussed this earlier > today. After reviewing the thread, I think the problem you are experiencing is related to the fact that each instance of PHP is running a seperate JVM. It's not that the JVM is being destroyed. Therefore when you have ap

Re: [PHP-DEV] sapi/servlet configuration error

2002-12-05 Thread Tony J. White
On Thu, 5 Dec 2002, Ray Hunter wrote: > This is the line in my Makefile: > > sapi/servlet/java.lo: sapi/servlet/java.c > $(LIBTOOL) --mode=compile $(CC) -Isapi/servlet/ > -I/home/rhunter/src/php4/sapi/servlet/ $(COMMON_FLAGS) $(CFLAGS_CLEAN) > $(EXTRA_CFLAGS) -prefer-pic -c sapi/servlet/jav

Re: [PHP-DEV] persistent java virtual machine under PHP

2002-12-05 Thread Tony J. White
On Thu, 5 Dec 2002, [ISO-8859-2] Maróy Ákos wrote: > > Actually, the JVM is unloaded by php. In the latest CVS the code from > > I see. But if you dlclose()-it, what happens to open resources, like > open file descriptors, network sockets, etc? It seems to be a crude way > of unloading the JVM..

Re: [PHP-DEV] sapi/servlet configuration error

2002-12-05 Thread Tony J. White
On Thu, 5 Dec 2002, Ray Hunter wrote: > make: *** No rule to make target `sapi/servlet/java.c', needed by > `sapi/servlet/java.lo'. Stop. It looks like the sapi/servlet/Makefile.frag is not being added to your Makefile. Can you verify that there is no line in your main Makefile that starts with

[PHP-DEV] Java Extension Build Method

2002-12-05 Thread Tony J. White
The /ext/java module is an odd duck compared to other php extentions in that it uses DL_LOAD() to load libjava instead of being linked and that it is always built as a module (.so) instead of being built static into php. I've spent some time over the past couple weeks investigating why this is do

Re: [PHP-DEV] persistent java virtual machine under PHP

2002-12-05 Thread Tony J. White
On Wed, 4 Dec 2002, [ISO-8859-2] Maróy Ákos wrote: > What happens is that the function jvm_create() gets called regularly > when requesting new pages using the Java extension, from the function > java_call_function_handler(): > >if (!JG(jenv)) jvm_create(TSRMLS_C); Actually, the JVM is unload

Re: [PHP-DEV] Java extension fixes

2002-12-05 Thread Tony J. White
Ray > > On Wed, 2002-12-04 at 01:20, Sebastian Bergmann wrote: > > "Tony J. White" wrote: > > > Can someone please add this to CVS or should I contact Sam Ruby (the > > > orignal author) to do it? > > > > Committed, > > Sebasti

[PHP-DEV] CVS Account Request: tjw

2002-11-25 Thread Tony J. White
Submit fixes for php4/ext/java/ only. Rasmus instructed me to fill out this form. -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Java extension fixes

2002-11-25 Thread Tony J. White
the improper > loading/unloading of the JVM. > > > On Monday, November 25, 2002, at 01:00 AM, Tony J. White wrote: > > > > > I'm made a stability fix to the PHP Java extension. A full > > description of the > > changes as well as the updated java.c file (and p

[PHP-DEV] Java extension fixes

2002-11-24 Thread Tony J . White
I'm made a stability fix to the PHP Java extension. A full description of the changes as well as the updated java.c file (and patch) can be found here: http://tjw.org/php_java/ Can someone please add this to CVS or should I contact Sam Ruby (the orignal author) to do it? -Tony -- PHP Develo