diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 30859b616..58fac9a04 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -31,6 +31,7 @@ Bug fixes:: * irc: fix duplicated channels in autojoin option when autojoin_dynamic is enabled (issue #1795) * irc: fix display of TOPIC and QUIT messages with an empty trailing parameter (issue #1797) * javascript: fix return of long value in functions infolist_time, hdata_long and hdata_time + * php: fix function hdata_compare * relay: fix parsing of IRC messages received from clients (issue #1796) * scripts: fix issue with year ≥ 2038 in functions infolist_new_var_time, print_date_tags and print_y_date_tags (plugins: python/lua/tcl/guile/javascript) * scripts: fix issue with long interval in function hook_timer (plugins: python/ruby/lua/tcl/guile/javascript/php) diff --git a/src/plugins/php/weechat-php-api.c b/src/plugins/php/weechat-php-api.c index b28561040..7a7ee4233 100644 --- a/src/plugins/php/weechat-php-api.c +++ b/src/plugins/php/weechat-php-api.c @@ -5279,7 +5279,7 @@ API_FUNC(hdata_compare) hdata = (struct t_hdata *)API_STR2PTR(ZSTR_VAL(z_hdata)); pointer1 = (void *)API_STR2PTR(ZSTR_VAL(z_pointer1)); pointer2 = (void *)API_STR2PTR(ZSTR_VAL(z_pointer2)); - name = (void *)API_STR2PTR(ZSTR_VAL(z_name)); + name = ZSTR_VAL(z_name); case_sensitive = (int)z_case_sensitive; result = weechat_hdata_compare (hdata, pointer1, pointer2, name,