secret
Created

Segmentation fault (core dumped)

  • Download Gist
seg_fault.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?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;

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.