diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-12-15 22:53:51 +0100 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-12-15 22:53:51 +0100 |
commit | 75dc8b9d6c2c2f816ecbeffa4d4b048ebc2d5f58 (patch) | |
tree | 0ef749137348dca1ee0acd2fdd07184b2cf835f8 /src/plugins/php/weechat-php.c | |
parent | 07fbd309487b7de977e5798e67e70de1bd2fed8a (diff) | |
download | weechat-75dc8b9d6c2c2f816ecbeffa4d4b048ebc2d5f58.zip |
core: fix crash on plugin reload when using musl libs (closes #2052)
Diffstat (limited to 'src/plugins/php/weechat-php.c')
-rw-r--r-- | src/plugins/php/weechat-php.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/plugins/php/weechat-php.c b/src/plugins/php/weechat-php.c index 39d909557..8a5534916 100644 --- a/src/plugins/php/weechat-php.c +++ b/src/plugins/php/weechat-php.c @@ -1311,6 +1311,11 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[]) weechat_php_plugin = plugin; + php_quiet = 0; + php_eval_mode = 0; + php_eval_send_input = 0; + php_eval_exec_commands = 0; + /* set interpreter name and version */ weechat_hashtable_set (plugin->variables, "interpreter_name", plugin->name); @@ -1385,11 +1390,20 @@ weechat_plugin_end (struct t_weechat_plugin *plugin) php_embed_shutdown (); if (php_action_install_list) + { free (php_action_install_list); + php_action_install_list = NULL; + } if (php_action_remove_list) + { free (php_action_remove_list); + php_action_remove_list = NULL; + } if (php_action_autoload_list) + { free (php_action_autoload_list); + php_action_autoload_list = NULL; + } /* weechat_string_dyn_free (php_buffer_output, 1); */ return WEECHAT_RC_OK; |