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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0.8-RC1
    • 3.0.7-PL1
    • None
    • PHP Environment: 5.3.2
      Database: PostgreSQL 8.2

      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

            bantu Andreas Fischer [X] (Inactive)
            ithierack ithierack
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: