Menu

Commit [r19]  Maximize  Restore  History

Start java in a separate process and give pval's a proper reference count.

jost2345 2004-09-19

changed /trunk/php-java-bridge/ChangeLog
changed /trunk/php-java-bridge/INSTALL
added /trunk/php-java-bridge/LICENSE
changed /trunk/php-java-bridge/README
changed /trunk/php-java-bridge/bind.c
changed /trunk/php-java-bridge/client.c
changed /trunk/php-java-bridge/java.c
removed /trunk/php-java-bridge/java.ini
changed /trunk/php-java-bridge/java_bridge.c
added /trunk/php-java-bridge/php-java-bridge
added /trunk/php-java-bridge/php-java-bridge.service
added /trunk/php-java-bridge/php-java-bridge.spec
changed /trunk/php-java-bridge/server/natcJavaBridge.c
/trunk/php-java-bridge/ChangeLog Diff Switch to side-by-side view
--- a/trunk/php-java-bridge/ChangeLog
+++ b/trunk/php-java-bridge/ChangeLog
@@ -52,4 +52,34 @@
 	exceptions such as "class not found" and reports them to the
 	client.
 
+2004-09-19  Jost Boekemeier  <jostb@diego.intern>
+
+        Allocate pval's correctly, part II -- the previous change for 1.0.2
+	was incorrect: the php interpreter could not work reliable anymore if nextElement,
+	hashIndexUpdate or hashUpdate was called.
+	* client.c (nextElement, hashIndexUpdate, hashUpdate): Increment the refcount.
+
+	* php-java-bridge.spec, php-java-bridge.service, php-java-bridge:
+	New file.
+
+	* php.ini: Removed (now in php-java-bridge.spec).
+
+	* INSTALL, LICENSE: New file.
 	
+	Starting the JVM from the web-server caused several problems.  
+	Apache 1.3 even killed the server-part of the bridge.
+	* README: Recommend to start the JVM separately and to hardcode the 
+	java.socketname.
+	* bind.c (java_start_server): Do not start the server part of the
+	bridge if the user has hardcoded the java.socketname in java.ini.
+	(can_fork): New function.
+
+	* natcJavaBridge.c (handle_request): If the JVM ran out of memory
+	do nothing, send back null-pointer.
+	(exit_sig): Workaround for a bug in the IBM JVM. This VM should
+	not hang anymore when started as a sub-process from Apache --
+	starting the VM as a sub-process of Apache is now deprecated
+	anyway.
+
+	* php-java-bridge 1.0.4 released.
+	
/trunk/php-java-bridge/INSTALL Diff Switch to side-by-side view
--- a/trunk/php-java-bridge/INSTALL
+++ b/trunk/php-java-bridge/INSTALL
@@ -1,4 +1,4 @@
-Installation guide:
+Installation from source code.
 
 The following software components must be installed on your computer:
 
@@ -27,7 +27,7 @@
 # compile and install apache 2
 gunzip < httpd_2.x.y.tar.gz | tar xf -
 cd httpd_2.x.y
-./configure --prefix=$INST
+./configure  --enable-module=so --prefix=$INST
 make && su -c "make install"
 cd ..
 
/trunk/php-java-bridge/LICENSE Diff Switch to side-by-side view
Loading...
/trunk/php-java-bridge/README Diff Switch to side-by-side view
Loading...
/trunk/php-java-bridge/bind.c Diff Switch to side-by-side view
Loading...
/trunk/php-java-bridge/client.c Diff Switch to side-by-side view
Loading...
/trunk/php-java-bridge/java.c Diff Switch to side-by-side view
Loading...
/trunk/php-java-bridge/java_bridge.c Diff Switch to side-by-side view
Loading...
/trunk/php-java-bridge/php-java-bridge Diff Switch to side-by-side view
Loading...
/trunk/php-java-bridge/php-java-bridge.service Diff Switch to side-by-side view
Loading...
/trunk/php-java-bridge/php-java-bridge.spec Diff Switch to side-by-side view
Loading...
/trunk/php-java-bridge/server/natcJavaBridge.c Diff Switch to side-by-side view
Loading...
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.