Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: library
    • Security Level: Public
    • Labels:
      None

      Description

      The array's returned by getMulti() are not correctly keyed or are in some other way broken. When one tries to reference the key via it's name, an "undefined index" error is returned. array_key_exists() also returns false.

      This paste has some sample code:
      https://friendpaste.com/MJS2O8G5b7kRqslp2pMBo

      Both the top and bottom cases should end in bool(true).

      avsej mentioned in IRC that these two portions of code should be compared:
      https://github.com/couchbase/php-ext-couchbase/blob/master/couchbase.c#L940
      https://github.com/php-memcached-dev/php-memcached/blob/master/php_memcached.c#L828

      Thanks for digging into this issue.

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        mnunberg Mark Nunberg added a comment -

        PCBC-66 fixed only for getMulti but not setMulti which suffers from the same bug.

        Show
        mnunberg Mark Nunberg added a comment - PCBC-66 fixed only for getMulti but not setMulti which suffers from the same bug.

          People

          • Assignee:
            mnunberg Mark Nunberg
            Reporter:
            BigBlueHat Benjamin Young
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes