Fixed some spaces used instead of tabs

This commit is contained in:
Patrick Allaert 2021-06-29 10:04:10 +02:00 committed by Patrick Allaert
parent a233bfc766
commit aff365871a
157 changed files with 1011 additions and 1014 deletions

View file

@ -130,28 +130,28 @@ static void pcre_handle_exec_error(int pcre_code) /* {{{ */
static const char *php_pcre_get_error_msg(php_pcre_error_code error_code) /* {{{ */
{
switch (error_code) {
case PHP_PCRE_NO_ERROR:
return "No error";
case PHP_PCRE_INTERNAL_ERROR:
return "Internal error";
case PHP_PCRE_BAD_UTF8_ERROR:
return "Malformed UTF-8 characters, possibly incorrectly encoded";
case PHP_PCRE_BAD_UTF8_OFFSET_ERROR:
return "The offset did not correspond to the beginning of a valid UTF-8 code point";
case PHP_PCRE_BACKTRACK_LIMIT_ERROR:
return "Backtrack limit exhausted";
case PHP_PCRE_RECURSION_LIMIT_ERROR:
return "Recursion limit exhausted";
switch (error_code) {
case PHP_PCRE_NO_ERROR:
return "No error";
case PHP_PCRE_INTERNAL_ERROR:
return "Internal error";
case PHP_PCRE_BAD_UTF8_ERROR:
return "Malformed UTF-8 characters, possibly incorrectly encoded";
case PHP_PCRE_BAD_UTF8_OFFSET_ERROR:
return "The offset did not correspond to the beginning of a valid UTF-8 code point";
case PHP_PCRE_BACKTRACK_LIMIT_ERROR:
return "Backtrack limit exhausted";
case PHP_PCRE_RECURSION_LIMIT_ERROR:
return "Recursion limit exhausted";
#ifdef HAVE_PCRE_JIT_SUPPORT
case PHP_PCRE_JIT_STACKLIMIT_ERROR:
return "JIT stack limit exhausted";
case PHP_PCRE_JIT_STACKLIMIT_ERROR:
return "JIT stack limit exhausted";
#endif
default:
return "Unknown error";
}
default:
return "Unknown error";
}
}
/* }}} */
@ -736,8 +736,8 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache_ex(zend_string *regex, in
case 'U': coptions |= PCRE2_UNGREEDY; break;
case 'u': coptions |= PCRE2_UTF;
/* In PCRE, by default, \d, \D, \s, \S, \w, and \W recognize only ASCII
characters, even in UTF-8 mode. However, this can be changed by setting
the PCRE2_UCP option. */
characters, even in UTF-8 mode. However, this can be changed by setting
the PCRE2_UCP option. */
#ifdef PCRE2_UCP
coptions |= PCRE2_UCP;
#endif
@ -2982,9 +2982,9 @@ PHP_FUNCTION(preg_last_error)
/* {{{ Returns the error message of the last regexp execution. */
PHP_FUNCTION(preg_last_error_msg)
{
ZEND_PARSE_PARAMETERS_NONE();
ZEND_PARSE_PARAMETERS_NONE();
RETURN_STRING(php_pcre_get_error_msg(PCRE_G(error_code)));
RETURN_STRING(php_pcre_get_error_msg(PCRE_G(error_code)));
}
/* }}} */
@ -2992,7 +2992,7 @@ PHP_FUNCTION(preg_last_error_msg)
zend_module_entry pcre_module_entry = {
STANDARD_MODULE_HEADER,
"pcre",
"pcre",
ext_functions,
PHP_MINIT(pcre),
PHP_MSHUTDOWN(pcre),