Function __global->cms_preg_safety_guard_ok
Definitions
sources/global3.php
- Protect us from infinite loop bugs within complex regexp loops that keep going so long as stuff is changing.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| &$guard | array | Yes | No | required parameter | N/A | N/A | Data structure from cms_preg_safety_guard_init |
Returns
- Whether it is safe to keep looping
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Protect us from infinite loop bugs within complex regexp loops that keep going so long as stuff is changing.
*
* @param array $guard Data structure from cms_preg_safety_guard_init
* @return boolean Whether it is safe to keep looping
*/
function cms_preg_safety_guard_ok(array &$guard) : bool
* Protect us from infinite loop bugs within complex regexp loops that keep going so long as stuff is changing.
*
* @param array $guard Data structure from cms_preg_safety_guard_init
* @return boolean Whether it is safe to keep looping
*/
function cms_preg_safety_guard_ok(array &$guard) : bool

