Uploaded image for project: 'PHP Legacy Driver'
  1. PHP Legacy Driver
  2. PHP-1505

negative files.length when storing file with size > 2GB in gridfs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 1.6.12
    • Fix Version/s: 1.6.13
    • Component/s: pecl-mongo
    • Labels:
      None
    • # Replies:
      24
    • Last comment by Customer:
      true
    • Sprint:
      PHP Sprint 31, PHP Sprint 32

      Description

      Hello,

      When storing a file in GridFS with a size > 2GB the length in the fs.files table is negative.

      I have a 64Bit OS and 64Bit mongoDB

      db.runCommand("buildInfo")
      {
              "version" : "3.2.1",
              "gitVersion" : "a14d55980c2cdc565d4704a7e3ad37e4e535c1b2",
              "modules" : [ ],
              "allocator" : "tcmalloc",
              "javascriptEngine" : "mozjs",
              "sysInfo" : "deprecated",
              "versionArray" : [
                      3,
                      2,
                      1,
                      0
              ],
              "openssl" : {
                      "running" : "OpenSSL 1.0.2e 3 Dec 2015",
                      "compiled" : "OpenSSL 1.0.2e 3 Dec 2015"
              },
              "buildEnvironment" : {
                      "distmod" : "",
                      "distarch" : "x86_64",
                      "cc" : "x86_64-pc-linux-gnu-gcc: x86_64-pc-linux-gnu-gcc (Gentoo Hardened 4.9.3 p1.5, pie-0.6.4) 4.9.3",
                      "ccflags" : "-fno-omit-frame-pointer -fPIC -fno-strict-aliasing -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fno-builtin-memcmp",
                      "cxx" : "x86_64-pc-linux-gnu-g++: x86_64-pc-linux-gnu-g++ (Gentoo Hardened 4.9.3 p1.5, pie-0.6.4) 4.9.3",
                      "cxxflags" : "-pipe -std=c++11",
                      "linkflags" : "-fPIC -pthread -Wl,-O1 -Wl,--as-needed -Wl,-z,now -rdynamic -fuse-ld=gold",
                      "target_arch" : "x86_64",
                      "target_os" : "linux"
              },
              "bits" : 64,
              "debug" : false,
              "maxBsonObjectSize" : 16777216,
              "storageEngines" : [
                      "devnull",
                      "ephemeralForTest",
                      "mmapv1",
                      "wiredTiger"
              ],
              "ok" : 1
      }
      

      I use pecl-mongo driver 1.6.11.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since reply:
                3 years, 44 weeks, 2 days ago
                Date of 1st Reply: