Simple Machines Community Forum

SMF Development => Bug Reports => Topic started by: Randem on May 10, 2023, 02:43:00 AM

Title: integrate_error_types function call not working
Post by: Randem on May 10, 2023, 02:43:00 AM
I have attempted to use this integrated function to no avail until I changed the line in Errors.php in the function log_error

$known_error_types += $other_error_types;
to

$known_error_types = array_merge($known_error_types, $other_error_types);
Are there any examples of this integrated function working?
I am running on PHP 8.1 with SMF 2.1.3
Title: Re: integrate_error_types function call not working
Post by: live627 on May 10, 2023, 05:15:11 AM
Quote from: Randem on May 10, 2023, 02:43:00 AMAre there any examples of this integrated function working?
If there were, this issue would have been unearthed already.
Title: Re: integrate_error_types function call not working
Post by: Randem on May 10, 2023, 05:41:07 AM
QuoteIf there were, this issue would have been unearthed already.

So are you saying there is an issue with this function because there are no examples or there isn't an issue because there are no examples...?
Title: Re: integrate_error_types function call not working
Post by: Sesquipedalian on May 11, 2023, 12:49:30 PM
This looks like a legitimate bug. Please open a new issue on GitHub (https://github.com/SimpleMachines/SMF/issues) about this, @Randem. It would also be good for a moderator to move this topic to the Bug Reports board.
Title: Re: integrate_error_types function call not working
Post by: Randem on May 11, 2023, 02:55:29 PM
@Sesquipedalian

Reported as requested, Thanks.