This topic lists the PHP API functions of the Zend Java Bridge.
JavaException is a PHP class that inherits from the default PHP5 class "Exception"
Available Since Version: 3.6
Function |
Description |
Get the Java exception that led to this exception |
Get the Java exception that led to this exception
Available Since Version: 3.6
Return Value: object - A Java exception object, if there was an exception, NULL otherwise
a Java object
Available Since Version: 3.6
Function |
Description |
Creates a Java object |
Creates a Java object
Available Since Version: 3.6
Parameter |
Type |
Required |
Description |
class_name |
string |
Yes |
Class name to create |
Return Value: object - The Java object that was created, NULL otherwise
Function |
Description |
Returns a Java exception object for the last exception that occurred in the script: only the last exception is stored by the Java Bridge |
|
Clears the last Java exception object record from the Java Bridge storage |
|
Sets the case sensitivity for Java calls when there are mixed cases in your PHP script |
|
Controls if exceptions are thrown on Java exception. When an exception is thrown by a Java application, this function controls if the exception caught by the PHP code will continue to be thrown or not (if not, it is stored in the Java Bridge's internal memory) |
|
Sets encoding for strings received by Java from the PHP code to verify that the encoding is the same in the PHP and Java code |
|
Includes an additional CLASSPATH/JAR in a PHP script context |
|
Reloads Jar files that were dynamically loaded - on demand |
Returns a Java exception object for the last exception that occurred in the script: only the last exception is stored by the Java Bridge
Available Since Version: 3.6
Return Value: object - Java exception object, if there was an exception, NULL otherwise
Clears the last Java exception object record from the Java Bridge storage
Available Since Version: 3.6
Sets the case sensitivity for Java calls when there are mixed cases in your PHP script
Available Since Version: 3.6
Parameter |
Type |
Required |
Description |
ignore |
boolean |
Yes |
If set, the Java attribute and method names are resolved, regardless of case |
Controls if exceptions are thrown on Java exception. When an exception is thrown by a Java application, this function controls if the exception caught by the PHP code will continue to be thrown or not (if not, it is stored in the Java Bridge's internal memory)
Available Since Version: 3.6
Parameter |
Type |
Required |
Description |
throw |
int |
Yes |
If true, a PHP exception is thrown when a Java exception happens. If set to FALSE, use java_last_exception_get() to check for exceptions |
Sets encoding for strings received by Java from the PHP code to verify that the encoding is the same in the PHP and Java code
Available Since Version: 3.6
Parameter |
Type |
Required |
Description |
encoding |
string |
No |
Default encoding type is UTF-8 |
Includes an additional CLASSPATH/JAR in a PHP script context
Available Since Version: 3.6
Parameter |
Type |
Required |
Description |
path |
string |
Yes |
URL pointing to the location of the Jar file. This function accepts the following protocols: |
Reloads Jar files that were dynamically loaded - on demand
Available Since Version: 3.6
Parameter |
Type |
Required |
Description |
new_jarpath |
string |
Yes |
The path to the Jar files |