Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-113

getMulti() returns "broken" array

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • None
    • None
    • library
    • Security Level: Public
    • 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.

      Attachments

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

        Activity

          People

            mnunberg Mark Nunberg (Inactive)
            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

                PagerDuty