Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public
    • Labels:
      None
    • Environment:
      Debian testing/unstable hybrid, PHP 5.3.6-13 with Suhosin-Patch (cli) (built: Jul 4 2011 12:42:46,

      Description

      Valid JSON ends up in Couchbase as attachment as it is considered invalid.

      1. jsonbug.php
        0.4 kB
        Volker Mische
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        jan Jan Lehnardt (Inactive) added a comment -

        Can't reproduce on Mac OS X:

        > cat jsonbug.php
        <?php
        error_erporting(E_ALL);
        require("Couchbase.php");

        $cb = new Couchbase;
        $cb->addCouchbaseServer("localhost", 12001, 9500, null, 9000);

        $json = '{ "properties": { "FID": "48319", "NAME": "Cypress Slough", "CLASS": "Stream", "COUNTY": "Miller" }}';
        var_dump($json);
        $uid = uniqid();
        var_dump($uid);
        var_dump($cb->set($uid, $json));
        $result = $cb->get($uid);
        // echo "Stored: " . $uid . ': ' . $result;
        var_dump($result);
        ?>

        > php -d extension=./memcached.so jsonbug.php
        string(100) "{ "properties": { "FID": "48319", "NAME": "Cypress Slough", "CLASS": "Stream", "COUNTY": "Miller" }}"
        string(13) "4e4b808907f27"
        bool(true)
        string(100) "{ "properties": { "FID": "48319", "NAME": "Cypress Slough", "CLASS": "Stream", "COUNTY": "Miller" }}"

        Volker, can you use the slightly modified script I used and show me your exact invocation, the result and your `php -i` output?

        Show
        jan Jan Lehnardt (Inactive) added a comment - Can't reproduce on Mac OS X: > cat jsonbug.php <?php error_erporting(E_ALL); require("Couchbase.php"); $cb = new Couchbase; $cb->addCouchbaseServer("localhost", 12001, 9500, null, 9000); $json = '{ "properties": { "FID": "48319", "NAME": "Cypress Slough", "CLASS": "Stream", "COUNTY": "Miller" }}'; var_dump($json); $uid = uniqid(); var_dump($uid); var_dump($cb->set($uid, $json)); $result = $cb->get($uid); // echo "Stored: " . $uid . ': ' . $result; var_dump($result); ?> > php -d extension=./memcached.so jsonbug.php string(100) "{ "properties": { "FID": "48319", "NAME": "Cypress Slough", "CLASS": "Stream", "COUNTY": "Miller" }}" string(13) "4e4b808907f27" bool(true) string(100) "{ "properties": { "FID": "48319", "NAME": "Cypress Slough", "CLASS": "Stream", "COUNTY": "Miller" }}" Volker, can you use the slightly modified script I used and show me your exact invocation, the result and your `php -i` output?
        Hide
        jan Jan Lehnardt (Inactive) added a comment -

        We tracked this down to an incompatible memcached.so file. Using the bundled one makes this work.

        Show
        jan Jan Lehnardt (Inactive) added a comment - We tracked this down to an incompatible memcached.so file. Using the bundled one makes this work.
        Hide
        vmx Volker Mische added a comment -

        The incompatible on is on Debian testing/unstable.

        php5-memcached: 1.0.2-1+b1 0

        From phpinfo():
        memcached support => enabled
        Version => 1.0.2
        libmemcached version => 0.44
        Session support => yes
        igbinary support => no

        Show
        vmx Volker Mische added a comment - The incompatible on is on Debian testing/unstable. php5-memcached: 1.0.2-1+b1 0 From phpinfo(): memcached support => enabled Version => 1.0.2 libmemcached version => 0.44 Session support => yes igbinary support => no

          People

          • Assignee:
            jan Jan Lehnardt (Inactive)
            Reporter:
            vmx Volker Mische
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes