You are here

public function Drupal_Sniffs_Semantics_PregSecuritySniff::registerFunctionNames in Coder 7.2

Returns an array of function names this test wants to listen for.

Return value

array

File

coder_sniffer/Drupal/Sniffs/Semantics/PregSecuritySniff.php, line 29

Class

Drupal_Sniffs_Semantics_PregSecuritySniff
Check the usage of the preg functions to ensure the insecure /e flag isn't used: http://drupal.org/node/750148

Code

public function registerFunctionNames() {
  return array(
    'preg_filter',
    'preg_grep',
    'preg_match',
    'preg_match_all',
    'preg_replace',
    'preg_replace_callback',
    'preg_split',
  );
}