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

Update PHP code

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2.0-a1
    • 3.1.0-b2
    • None
    • None

      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.
      

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

              Created:
              Updated:
              Resolved: