Function __global->php_function_allowed
Definitions
sources/global.php
- Find whether a particular PHP function is blocked.Note that you still need to put "@" before set_time_limit, as some webhost(s) have their own non-detectable block:"Cannot set max execution time limit due to system policy".
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $function | string | No | No | required parameter | N/A | N/A | Function name |
Returns
- Whether it is
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find whether a particular PHP function is blocked.Note that you still need to put "@" before set_time_limit, as some webhost(s) have their own non-detectable block:"Cannot set max execution time limit due to system policy".
*
* @param string $function Function name
* @return boolean Whether it is
*/
function php_function_allowed(string $function) : bool
* Find whether a particular PHP function is blocked.Note that you still need to put "@" before set_time_limit, as some webhost(s) have their own non-detectable block:"Cannot set max execution time limit due to system policy".
*
* @param string $function Function name
* @return boolean Whether it is
*/
function php_function_allowed(string $function) : bool
sources/minikernel.php
- Find whether a particular PHP function is blocked.This is just a wrapper for bootstrap's php_function_allowed.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $function | string | No | No | required parameter | N/A | N/A | Function name |
Returns
- Whether it is
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find whether a particular PHP function is blocked.This is just a wrapper for bootstrap's php_function_allowed.
*
* @param string $function Function name
* @return boolean Whether it is
*/
function php_function_allowed(string $function) : bool
* Find whether a particular PHP function is blocked.This is just a wrapper for bootstrap's php_function_allowed.
*
* @param string $function Function name
* @return boolean Whether it is
*/
function php_function_allowed(string $function) : bool
