public class MiscModule extends AbstractQuercusModule
Modifier and Type | Field and Description |
---|---|
static int |
CONNECTION_ABORTED |
static int |
CONNECTION_NORMAL |
static int |
CONNECTION_TIMEOUT |
PHP_INI_ALL, PHP_INI_PERDIR, PHP_INI_SYSTEM, PHP_INI_USER
Constructor and Description |
---|
MiscModule() |
Modifier and Type | Method and Description |
---|---|
static int |
connection_aborted(Env env)
Return true on a client disconnect
|
static int |
connection_status(Env env)
Returns the status
|
static Value |
dump_stack(Env env)
Dumps the stack.
|
static StringValue |
escapeshellarg(Env env,
StringValue arg)
Escapes characters in a string.
|
static java.lang.String |
escapeshellcmd(java.lang.String command)
Escapes characters in a string.
|
Value |
eval(Env env,
StringValue code)
Comples and evaluates an expression.
|
static java.lang.String |
exec(Env env,
java.lang.String command,
Value output,
Value result)
Execute a system command.
|
static Value |
get_browser(Env env,
java.lang.String user_agent,
boolean return_array)
Returns an array detailing what the browser is capable of.
|
static int |
ignore_user_abort(boolean set)
Returns the disconnect ignore setting
|
Value |
pack(Env env,
java.lang.String format,
Value[] args)
packs the format into a binary.
|
static void |
passthru(Env env,
java.lang.String command,
Value result)
Execute a system command.
|
static int |
proc_close(Env env,
ProcOpenResource stream)
Closes the process opened by proc_open.
|
static Value |
proc_get_status(Env env,
ProcOpenResource stream) |
static ProcOpenResource |
proc_open(Env env,
java.lang.String command,
ArrayValue descriptorArray,
Value pipes,
Path pwd,
ArrayValue envArray,
ArrayValue options)
Basic implementation of proc_open.
|
static boolean |
proc_terminate(Env env,
ProcOpenResource stream)
Forcibly terminates the process opened by proc_open.
|
Value |
resin_debug(java.lang.String code)
Logs the expression.
|
Value |
resin_thread_dump()
Dumps the Java stack to standard out.
|
static Value |
shell_exec(Env env,
java.lang.String command)
Execute a system command.
|
static long |
sleep(long seconds)
Sleep for a number of seconds.
|
static java.lang.String |
system(Env env,
java.lang.String command,
Value result)
Execute a system command.
|
java.lang.String |
uniqid(java.lang.String prefix,
boolean moreEntropy)
Returns a unique id.
|
Value |
unpack(Env env,
java.lang.String format,
StringValue s)
packs the format into a binary.
|
static Value |
usleep(long microseconds)
Sleep for a number of microseconds.
|
addConstant, addConstant, addConstant, getConstMap, getIniDefinitions, getLoadedExtensions
public static final int CONNECTION_NORMAL
public static final int CONNECTION_ABORTED
public static final int CONNECTION_TIMEOUT
public static int connection_aborted(Env env)
public static int connection_status(Env env)
public static java.lang.String escapeshellcmd(java.lang.String command)
public static StringValue escapeshellarg(Env env, StringValue arg)
public Value eval(Env env, StringValue code)
public static java.lang.String exec(Env env, java.lang.String command, Value output, Value result)
public static Value get_browser(Env env, java.lang.String user_agent, boolean return_array)
env
- user_agent
- return_array
- public Value pack(Env env, java.lang.String format, Value[] args)
public Value unpack(Env env, java.lang.String format, StringValue s)
public Value resin_debug(java.lang.String code)
public Value resin_thread_dump()
public static Value shell_exec(Env env, java.lang.String command)
public static void passthru(Env env, java.lang.String command, Value result)
public static ProcOpenResource proc_open(Env env, java.lang.String command, ArrayValue descriptorArray, Value pipes, Path pwd, ArrayValue envArray, ArrayValue options)
public static int proc_close(Env env, ProcOpenResource stream)
public static boolean proc_terminate(Env env, ProcOpenResource stream)
public static Value proc_get_status(Env env, ProcOpenResource stream)
public static int ignore_user_abort(boolean set)
public java.lang.String uniqid(java.lang.String prefix, boolean moreEntropy)
public static Value usleep(long microseconds)
public static long sleep(long seconds)