Skip to content

[2.1 & 3.0] Using E_USER_ERROR in trigger_error() deprecated in PHP 8.4 #9141

@sbulen

Description

@sbulen

Basic Information

E_USER_ERROR is passed to trigger_error(), indirectly, in the DB routines when preparing a backtrace. There may be other instances.

Source: https://www.php.net/manual/en/migration84.deprecated.php

See:

smf_db_error_backtrace('Wrong value type sent to the database. IPv4 or IPv6 expected.(' . $matches[2] . ')', '', E_USER_ERROR, __FILE__, __LINE__);

trigger_error($error_message . ($line !== null ? '<em>(' . basename($file) . '-' . $line . ')</em>' : ''), $error_type);

I have learned a few lessons testing #9126 that I will log separately. Pretty sure these affect both 2.1 & 3.0.

Steps to reproduce

Expected result

No response

Actual result

No response

Version/Git revision

2.1 & 3.0 Alpha 4

Database Engine

All

Database Version

No response

PHP Version

8.4

Logs

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions