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

Update example code for using-cas.php

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • 4.1.x
    • None
    • docs
    • None
    • 1

    Description

      The code https://github.com/couchbase/docs-sdk-php/blob/release/3.1/modules/howtos/examples/using-cas.php doesn't run.

      In particular:

      • the credentials/bucket configuration don't match what's created in e.g the Docker server-sandbox
      • function flow isn't wired up properly (e.g. replaceWithCas isn't defined)

       

      NB: as a result, I've recreated some of the logic in the errors example https://github.com/couchbase/docs-sdk-php/pull/56/commits/4dd53f3ca38f5bd3897e5f01313352e325410ed8#diff-be86df73944a21f7a1e652eae7c0a703fc738c405971d935b186a1377f8e0222R40-R59 where it might have been more elegant to link to a snippet here in future.

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            hakim.cassimally Hakim Cassimally
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty