mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
fix #37418 (tidy module crashes CLI version of PHP)
This commit is contained in:
parent
fb32c077a2
commit
4cb3d18276
@ -40,6 +40,7 @@ extern zend_module_entry tidy_module_entry;
|
||||
#define TIDY_ATTR_ME(name, param) TIDY_METHOD_MAP(name, tam_ ##name, param)
|
||||
|
||||
PHP_MINIT_FUNCTION(tidy);
|
||||
PHP_MSHUTDOWN_FUNCTION(tidy);
|
||||
PHP_RINIT_FUNCTION(tidy);
|
||||
PHP_MINFO_FUNCTION(tidy);
|
||||
|
||||
|
@ -326,7 +326,7 @@ zend_module_entry tidy_module_entry = {
|
||||
"tidy",
|
||||
tidy_functions,
|
||||
PHP_MINIT(tidy),
|
||||
NULL,
|
||||
PHP_MSHUTDOWN(tidy),
|
||||
PHP_RINIT(tidy),
|
||||
NULL,
|
||||
PHP_MINFO(tidy),
|
||||
@ -1000,6 +1000,17 @@ PHP_RINIT_FUNCTION(tidy)
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
PHP_MSHUTDOWN_FUNCTION(tidy)
|
||||
{
|
||||
#ifdef ZTS
|
||||
ts_free_id(tidy_globals_id);
|
||||
#else
|
||||
tidy_globals_dtor(&tidy_globals TSRMLS_CC);
|
||||
#endif
|
||||
UNREGISTER_INI_ENTRIES();
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
PHP_MINFO_FUNCTION(tidy)
|
||||
{
|
||||
php_info_print_table_start();
|
||||
|
Loading…
Reference in New Issue
Block a user