summaryrefslogtreecommitdiff
path: root/src/plugins/php
AgeCommit message (Collapse)Author
2022-03-13api: add function buffer_new_props (closes #1759)Sébastien Helleu
2022-03-12scripts: allow null values in config_new_optionTrygve Aaberge
The plugin API function config_new_option accepts null as the default_value and/or value however the scripting APIs (except for lua) didn't allow sending null as a parameter value, so it was impossible to use it this way. This allows sending a null value for these parameters. Lua already supported sending in nil for these parameters and it works as expected, so nothing is changed for this plugin. For Guile you can now send in #nil, for JavaScript null or undefined, for Perl undef, for PHP NULL, for Python None, for Ruby nil and for Tcl $::weechat::WEECHAT_NULL. In all of these languages except Tcl this is the special value indicating a missing value. However Tcl only has one type, string, so it doesn't have a null value. Therefore I created a constant with the value `\uFFFF\uFFFF\uFFFFWEECHAT_NULL\uFFFF\uFFFF\uFFFF` which is used instead. This is very unlikely to appear unintentionally. Using the unicode code point \uFFFF was suggested on https://wiki.tcl-lang.org/page/null. I tested this with these scripts: https://gist.github.com/trygveaa/f91977dde5d2876d502bf55fbf9b50cc
2022-02-20scripts: auto-load scripts with supported extensions only (closes #1698)Sébastien Helleu
2022-01-30core: add support of date and tags in messages displayed in buffers with ↵Sébastien Helleu
free content, add function printf_y_date_tags (closes #1746)
2022-01-17core: update copyright datesSébastien Helleu
2021-11-06api: add parameters pointers, extra_vars and options in function hdata_searchSébastien Helleu
2021-10-02plugins: use a different plugin priority for each scripting languageSébastien Helleu
2021-09-19php: add missing header files in autotools buildSébastien Helleu
2021-08-08php: add ifdef for zend_file_handle.filenameAdam Saponara
2021-08-08php: fix PHP 8+ buildAdam Saponara
2021-08-08php: add detection of PHP 8.0, fix compilation errorsSébastien Helleu
2021-01-02core: update copyright datesSébastien Helleu
2020-08-22api: add function string_color_code_size (issue #1547)Sébastien Helleu
2020-06-21core: add bar option "color_bg_inactive" (issue #732)Sébastien Helleu
2020-05-08core: rename functions hook_completion_{get_string|list_add} to ↵Sébastien Helleu
completion_{get_string|list_add} Old functions are kept for compatibility reasons.
2020-04-28api: return integer in function gui_completion_search (issue #1484)Sébastien Helleu
2020-04-27api: add functions completion_new, completion_search and completion_free ↵Sébastien Helleu
(issue #1484)
2020-02-28php: fix crash when loading script with PHP 7.4 (closes #1452)Sébastien Helleu
2020-01-04core: update copyright datesSébastien Helleu
2019-10-01core: fix style in CMake filesSébastien Helleu
2019-04-25cmake: allow custom libdir (fix #1341)Ryan Farley
Allows for custom LIBDIR to specified with cmake builds. WEECHAT_LIBDIR is used for a custom Weechat directory, or set from LIBDIR (as LIBDIR used to be set).
2019-04-13api: return allocated string in hook_info callback and function info_getSébastien Helleu
2019-03-24core: add CMake option "ENABLE_CODE_COVERAGE" to compile with code coverage ↵Sébastien Helleu
options This option is OFF by default and should be enabled only for tests, to measure test coverage.
2019-03-19php: remove value for first #define in headersSébastien Helleu
2019-02-28api: add function command_options (issue #928)Sébastien Helleu
2019-02-27php: fix memory leak in functions using hashtable parametersSébastien Helleu
Functions fixed in PHP plugin: - string_eval_expression - string_eval_path_home - key_bind - hook_process_hashtable - hook_hsignal_send - info_get_hashtable - hdata_update
2019-02-27api: add function string_match_listSébastien Helleu
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-09-01core: fix copyright datesSébastien Helleu
2018-08-12api: add function hook_lineSébastien Helleu
2018-05-17php: add comments about C compiler happinessSébastien Helleu
2018-05-17scripts: remove double return in info eval callback functions not yet ↵Sébastien Helleu
implemented
2018-05-17php: ensure vbuffer is not NULL before using itSébastien Helleu
2018-04-13scripts: fix memory leak in hook_info callbackSébastien Helleu
2018-04-12scripts: fix return value of hook_infolist callback (pointer instead of string)Sébastien Helleu
2018-04-10scripts: return long integer instead of string in function infolist_timeSébastien Helleu
2018-04-10php: return long instead of int in function hdata_timeSébastien Helleu
2018-04-10php: fix return code of functions config_write_option and config_write_lineSébastien Helleu
2018-04-10scripts: do not allocate memory when converting pointers to stringsSébastien Helleu
2018-04-07php: fix memory leak in 72 functions returning allocated stringsSébastien Helleu
Fixed functions: - iconv_to_internal - iconv_from_internal - string_mask_to_regex - string_format_size - string_remove_color - string_eval_expression - string_eval_path_home - list_new - list_add - list_search - list_casesearch - list_get - list_next - list_prev - config_new - config_new_section - config_search_section - config_new_option - config_search_option - config_get - hook_command - hook_completion - hook_command_run - hook_timer - hook_fd - hook_process - hook_process_hashtable - hook_connect - hook_print - hook_signal - hook_hsignal - hook_config - hook_modifier - hook_modifier_exec - hook_info - hook_info_hashtable - hook_infolist - hook_focus - buffer_new - buffer_search - buffer_search_main - current_buffer - buffer_get_pointer - buffer_string_replace_local_var - current_window - window_search_with_buffer - window_get_pointer - nicklist_add_group - nicklist_search_group - nicklist_add_nick - nicklist_search_nick - nicklist_group_get_pointer - nicklist_nick_get_pointer - bar_item_search - bar_item_new - bar_search - bar_new - infolist_new - infolist_new_item - infolist_new_var_integer - infolist_new_var_string - infolist_new_var_pointer - infolist_new_var_time - infolist_search_var - infolist_get - infolist_pointer - hdata_get - hdata_get_list - hdata_move - hdata_search - hdata_pointer - upgrade_new
2018-04-07api: add function string_format_size in scripting APISébastien Helleu
2018-01-25php: add OpenSSL licensing in copyrightSébastien Helleu
2018-01-15scripts: add option "eval_keep_context" in script pluginsSébastien Helleu
2018-01-15scripts: add configuration file for each script pluginSébastien Helleu
2018-01-14scripts: add missing initialization of plugin pointer to NULLSébastien Helleu
2018-01-07core: fix some stylesSébastien Helleu
2018-01-06core: update translations (issue #128)Sébastien Helleu
2018-01-06php: fix compiler warning (issue #128)Sébastien Helleu
2018-01-06scripts: add "eval" option in script commands and info "xxx_eval" (issue #128)Sébastien Helleu
For now this works only in python, perl, ruby and guile.