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

sql_config_count() artificially limits number scope to 4byte-integer on PostgreSQL and Firebird

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.7-PL1
    • Fix Version/s: 3.0.8-RC1
    • Labels:
      None
    • Environment:
      PHP Environment: 5.3.2
      Database: PostgreSQL 8.2

      Description

      I get an error

      Value '6185080811' is out of range type integer.

      Problem is here in functions.php funktion set_config_count
      line 182.

      int4 for postgresql are only up to 2147483647. If the sum of the uploaded files(size) is over these limit, i get the described error.
      No problem if im under 2 GB as filesize in summary, but im already arround 6 GB

      I fixed it with changing int4 to int8

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bantu Andreas Fischer
                Reporter:
                ithierack ithierack
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: