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.
> 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?