Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-17384

Passing E_USER_ERROR to trigger_error() is deprecated in PHP 8.4

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0.0-a1, 3.3.14-RC1
    • 4.0.0-a1, 3.3.12, 3.3.13-RC1
    • Other
    • None

      Passing E_USER_ERROR to trigger_error() is deprecated in PHP 8.4, so it causes E_DEPRECATED and E_FATAL, f.e.

      Deprecated: Passing E_USER_ERROR to trigger_error() is deprecated since 8.4, throw an exception or call exit with a string message instead
      Fatal error: Config values have to be deleted explicitly with the \phpbb\config\config::delete($key) method.
      

       

       

      And also:

      Fatal error: Uncaught TypeError: config::offsetUnset(): never-returning method must not implicitly return

       

      See:

      https://github.com/php/php-src/blob/7e5171d1f671dc19251fa8241842eb2fb4f8d7b8/UPGRADING#L431

      https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_passing_e_user_error_to_trigger_error

      https://github.com/php/php-src/pull/15308

       

            Marc Marc
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: