/Options.inc

Description
Constants
JAVA_DEBUG = false (line 155)

Debug mode for the client.

Debug mode for the client. This debug flag is for PHP only. To enable the VMBridge log restart Java with the -Dphp.java.bridge.default_log_level=... option.

JAVA_HOSTS = $ini["java.hosts"] (line 71)

The address of the HTTP back end.

The address of the HTTP back end. For example "127.0.0.1:8080"

JAVA_LOG_LEVEL = $ini["java.log_level"] (line 107)

The request log level between 0 (log off) and 4 (log debug).

The request log level between 0 (log off) and 4 (log debug). The default request log level is initialized with the value from to the Java system property "php.java.bridge.default_log_level". The servlet's init-param: servlet_log_level (see WEB-INF/web.xml) overrides this value. The default level is 2.

JAVA_PEAR_VERSION = "5.3.3" (line 55)

The version number of this PHP library.

The version number of this PHP library.

JAVA_PIPE_DIR = "/dev/shm" (line 134)

Use named pipes instead of local TCP sockets.

Use named pipes instead of local TCP sockets. Set this to the directory in which the named pipes should be created. Note that pipes are a little bit slower than persistent TCP sockets. But they are more secure. Example: define("JAVA_PIPE_DIR", "/tmp"); Default is to use /dev/shm on Linux, false otherwise.

JAVA_PREFER_VALUES = 0 (line 147)

Set to 1 for compatibility with earlier versions.

Set to 1 for compatibility with earlier versions. When this flag is set, a value (null, int, ...) is returned immediately. Otherwise a proxy (Request$PHPNULL, Integer, ...) is returned and PHP must fetch its content using java_values($proxy);

JAVA_RECV_SIZE = 8192 (line 61)
JAVA_SEND_SIZE = 8192 (line 58)
JAVA_SERVLET = $ini["java.servlet"] (line 98)

Rewrite rules for incoming HTTP requests.

Rewrite rules for incoming HTTP requests. Used in conjunction with JAVA_HOSTS and a servlet/J2EE back end

  • "On"; Hard-codes the context to "JavaBridge": http://foo.com/test.php => http://host1:port1/JavaBridge/test.phpjavabridge cookie path: always "/"
  • "bar/JavaBridge.phpjavabridge"; Hard-codes the context to "bar": http://foo.com/test.php => http://host1:port1/bar/test.phpjavabridge cookie path: always "/"
  • "User"; Separates different web apps: http://foo.com/mApp1/test.php => http://host1:port1/mApp1/test.phpjavabridge cookie path: /mApp1 http://foo.com/mApp2/test.php => http://host1:port1/mApp2/test.phpjavabridge cookie path: /mApp2
  • "Off" doesn't use a web context at all (no cookies are generated, no PHP/Java session sharing). Back-end must have been started with INET:PORT or INET_LOCAL:PORT, no Servlet engine, no J2EE server.

Documentation generated on Sun, 30 Nov 2008 10:51:49 +0100 by phpDocumentor 1.4.0a2