Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-12487

Update PHP code

    XMLWordPrintable

Details

    • Improvement
    • Status: Unverified Fix (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.1.0-b2
    • 3.2.0-a1
    • None
    • None

    Description

      phpBB 3.1 requires PHP 5.3.3+, so some code can be simplified.

      includes/startup.php

      Lines 18 to 21 (code) can be removed.

      Lines 123 to 148 (code) can be replaced with:

      date_default_timezone_set(@date_default_timezone_get());
      

      All of this because E_DEPRECATED, date_default_timezone_set() and date_default_timezone_get() were introduced in PHP 5.3.0.

      includes/functions.php

      Line 772 (code) can be replaced with the following for clarity:

      // Check if we are able to resolve symlinks, Windows (prior to Vista and Server 2008) cannot.
      

      Attachments

        Activity

          People

            nicofuma nicofuma
            M.Gaetan89 M.Gaetan89 [X] (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: