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

        mnunberg Mark Nunberg created issue -
        mnunberg Mark Nunberg made changes -
        Field Original Value New Value
        Description This affects all php binaries which do not have the symbol "php_json_encode"

        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.
        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.
        ingenthr Matt Ingenthron made changes -
        Assignee Matt Ingenthron [ ingenthr ] Mark Nunberg [ mnunberg ]
        mnunberg Mark Nunberg made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        ingenthr Matt Ingenthron made changes -
        Assignee Mark Nunberg [ mnunberg ] Karen Zeller [ kzeller ]
        ingenthr Matt Ingenthron made changes -
        Fix Version/s 1.1.0-dp6 [ 10402 ]
        Fix Version/s 1.1.0-beta [ 10403 ]
        Fix Version/s 1.1.0 [ 10242 ]
        kzeller kzeller made changes -
        Status In Progress [ 3 ] Open [ 1 ]
        kzeller kzeller made changes -
        Assignee Karen Zeller [ kzeller ] Mark Nunberg [ mnunberg ]
        ingenthr Matt Ingenthron made changes -
        Assignee Mark Nunberg [ mnunberg ] Karen Zeller [ kzeller ]
        kzeller kzeller made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        kzeller kzeller made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        ingenthr Matt Ingenthron made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        kzeller kzeller made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        kzeller kzeller made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        ingenthr Matt Ingenthron made changes -
        Fix Version/s 1.1.0-dp6 [ 10402 ]
        ingenthr Matt Ingenthron made changes -
        Fix Version/s 1.1.0-beta [ 10403 ]
        kzeller kzeller made changes -
        Resolution Fixed [ 1 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Assignee Karen Zeller [ kzeller ] Matt Ingenthron [ ingenthr ]
        trond Trond Norbye made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]
        brett19 Brett Lawson made changes -
        Workflow jira [ 21611 ] Couchbase SDK Workflow [ 44350 ]

          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