Skip to content

Instantly share code, notes, and snippets.

@lord-otori
Created February 1, 2013 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lord-otori/8a08980573d47c22aecc to your computer and use it in GitHub Desktop.
Save lord-otori/8a08980573d47c22aecc to your computer and use it in GitHub Desktop.
Segmentation fault (core dumped)
<?php
error_reporting(E_ALL);
require_once dirname(__FILE__) . '/../config/conf.inc.php';
//
$cb = new Couchbase($couchbase['hosts'], $couchbase['user'], $couchbase['pass'], $couchbase['test_bucket']);
$docs = array();
for ($x = 1; $x <= 1000; $x++) {//$x = 1-1000
$docs[]['TEST_DOC::' . $x] = '{"a" : 1}';
}
var_dump($cb->setMulti($docs));
echo 'Returned: ' . $cb->getResultCode() . PHP_EOL;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment