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

Multi-touch causes inconsistent zend hash error


    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0-dp5
    • Fix Version/s: 1.1.0-dp5
    • Component/s: library
    • Security Level: Public
    • Labels:


      The multiple-keys version of the touch operation (e.g. touchMulti() method of a Couchbase instance) causes an error to be reported about a hash being inconsistent, e.g. /home/orion/couchbase/php-5.3.15/Zend/zend_hash.c(520) : ht=0xaef9c24 is inconsistent
      (paths and memory locations would vary).

      The current return value scheme for multi-touch is that a hash is made in the initial php_couchbase_touch_impl function that maps all given keys to false, and then in the php_couchbase_touch_callback function as each key is seen, its value is updated to true. When the hash update block is commented out, this error is not reproduced, so it seems there is some issue within that code that causes this to happen. Notably it happens both with the raw key value (as retrieved from the response) and with effort taken to make sure that the key is nul-terminated (as in some other callback functions).

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


        mjackson Michael Jackson created issue -
        mjackson Michael Jackson made changes -
        Field Original Value New Value
        Assignee Matt Ingenthron [ ingenthr ] Michael Jackson [ mjackson ]
        mjackson Michael Jackson made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        mjackson Michael Jackson made changes -
        Status In Progress [ 3 ] Open [ 1 ]
        mjackson Michael Jackson made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.1.0-dp5 [ 10393 ]
        Resolution Fixed [ 1 ]
        brett19 Brett Lawson made changes -
        Workflow jira [ 21011 ] Couchbase SDK Workflow [ 44339 ]


          • Assignee:
            mjackson Michael Jackson
            mjackson Michael Jackson
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created:

              Gerrit Reviews

              There are no open Gerrit changes