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

1.1 dp releases not working on phps which do not export the symbol php_json_encode

    Details

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

      Description

      This affects all php binaries which do not have the symbol "php_json_encode". This includes EL5 and EL6 based linux distributions

      The library cannot load because the symbol is not found. Disabling using this symbol also means preventing views from functioning (as well as JSON serialization).

      I'd like to note that this is not our bug and not our fault. We are probably not the only extension relying on php_json* functions, and package creators (specifically redhat) should expose this symbol.

      Additionally, our configure script checks to see if the PHP_JSON_* constants are defined (and if not, compiles out the relevant code from views - this would make views not work, but not prevent the library from loading).

      In any event, we should find a way to work around this, as this bug has been seen quite a bit.

      One possible solution would be to call the php-level json encoding function. It may incur a bit of overhead from calling into php, but the function itself is more likely to be there.

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

        Activity

        Hide
        trond Trond Norbye added a comment -

        There are multiple bugs reported for this issue

        Show
        trond Trond Norbye added a comment - There are multiple bugs reported for this issue
        Hide
        ingenthr Matt Ingenthron added a comment -

        Andrey: We do not support PHP 5.2, so you'll want to try 5.3 or later. CentOS 5.6 does have, if I recall correctly, a "php53" package.

        Show
        ingenthr Matt Ingenthron added a comment - Andrey: We do not support PHP 5.2, so you'll want to try 5.3 or later. CentOS 5.6 does have, if I recall correctly, a "php53" package.
        Hide
        mnunberg Mark Nunberg added a comment - - edited

        what's the exact error you're getting?

        Maybe the json module needs to be installed as well? (I'll need to check this) –

        Show
        mnunberg Mark Nunberg added a comment - - edited what's the exact error you're getting? Maybe the json module needs to be installed as well? (I'll need to check this) –
        Hide
        kzeller kzeller added a comment -

        Hi Matt,

        This was reported as an technical issue still with PHP SDK:

        [ http://www.couchbase.com/issues/browse/PCBC-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46067#comment-46067 ]

        Andrey Nikishaev commented on PCBC-141:
        ---------------------------------------

        Use version 1.1.1 of client lib and still get this error even when couchbase.so loaded after json.so

        Show
        kzeller kzeller added a comment - Hi Matt, This was reported as an technical issue still with PHP SDK: [ http://www.couchbase.com/issues/browse/PCBC-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46067#comment-46067 ] Andrey Nikishaev commented on PCBC-141 : --------------------------------------- Use version 1.1.1 of client lib and still get this error even when couchbase.so loaded after json.so
        Hide
        creotiv Andrey Nikishaev added a comment -

        Use version 1.1.1 of client lib and still get this error even when couchbase.so loaded after json.so

        CentOS 5.6, PHP 5.2.17, Couchbase 1.8

        Show
        creotiv Andrey Nikishaev added a comment - Use version 1.1.1 of client lib and still get this error even when couchbase.so loaded after json.so CentOS 5.6, PHP 5.2.17, Couchbase 1.8

          People

          • Assignee:
            ingenthr Matt Ingenthron
            Reporter:
            mnunberg Mark Nunberg
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes