mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-7.4'
This commit is contained in:
commit
779b9bfe02
94 changed files with 86 additions and 89748 deletions
|
@ -105,7 +105,13 @@ void php_mb_regex_globals_free(zend_mb_regex_globals *pglobals)
|
|||
/* {{{ PHP_MINIT_FUNCTION(mb_regex) */
|
||||
PHP_MINIT_FUNCTION(mb_regex)
|
||||
{
|
||||
char version[256];
|
||||
|
||||
onig_init();
|
||||
|
||||
snprintf(version, sizeof(version), "%d.%d.%d",
|
||||
ONIGURUMA_VERSION_MAJOR, ONIGURUMA_VERSION_MINOR, ONIGURUMA_VERSION_TEENY);
|
||||
REGISTER_STRING_CONSTANT("MB_ONIGURUMA_VERSION", version, CONST_CS | CONST_PERSISTENT);
|
||||
return SUCCESS;
|
||||
}
|
||||
/* }}} */
|
||||
|
@ -158,13 +164,6 @@ PHP_MINFO_FUNCTION(mb_regex)
|
|||
ONIGURUMA_VERSION_MAJOR,
|
||||
ONIGURUMA_VERSION_MINOR,
|
||||
ONIGURUMA_VERSION_TEENY);
|
||||
#ifdef PHP_ONIG_BUNDLED
|
||||
#ifdef USE_COMBINATION_EXPLOSION_CHECK
|
||||
php_info_print_table_row(2, "Multibyte regex (oniguruma) backtrack check", "On");
|
||||
#else /* USE_COMBINATION_EXPLOSION_CHECK */
|
||||
php_info_print_table_row(2, "Multibyte regex (oniguruma) backtrack check", "Off");
|
||||
#endif /* USE_COMBINATION_EXPLOSION_CHECK */
|
||||
#endif /* PHP_BUNDLED_ONIG */
|
||||
php_info_print_table_row(2, "Multibyte regex (oniguruma) version", buf);
|
||||
php_info_print_table_end();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue