user_delete($_POST['confirm_id']);
     $delete_successful = true;
     break;
 case "delete_requirement":
     ############################################################################
     # EMAIL NOTIFICATION
     ############################################################################
     $recipients = requirement_get_notify_users($_POST['confirm_project_id'], $_POST['confirm_id']);
     requirement_email($_POST['confirm_project_id'], $_POST['confirm_id'], $recipients, $action = "delete");
     ############################################################################
     ############################################################################
     requirement_delete($_POST['confirm_project_id'], $_POST['confirm_id']);
     $delete_successful = true;
     break;
 case "delete_test":
     test_delete($_POST['confirm_id']);
     $delete_successful = true;
     break;
 case "delete_news_post":
     news_delete($_POST['confirm_project_id'], $_POST['confirm_id']);
     $delete_successful = true;
     break;
 case "remove_bug_category_from_project":
     project_remove_bug_category($_POST['confirm_project_id'], $_POST['confirm_id']);
     $delete_successful = true;
     break;
 case "remove_bug_component_from_project":
     project_remove_bug_component($_POST['confirm_project_id'], $_POST['confirm_id']);
     $delete_successful = true;
     break;
 case "delete_bug":
예제 #2
0
    if (is_null($ret)) {
        echo "range error! \n";
        return -1;
    }
    echo "range count: {$ret->count} \n";
    $item = $ret->root;
    while ($item) {
        echo "range item: {$item->value}  {$item->mask} \n";
        $item = $item->next;
    }
    return 0;
}
function test_count($m, $key)
{
    $ret = $m->count($key, "");
    if (is_null($ret)) {
        echo "range error! \n";
        return -1;
    }
    return 0;
}
$m = new MemLinkClient("127.0.0.1", 11001, 11002, 10);
$key = "haha";
test_create($m, $key);
test_stat($m, $key);
test_insert($m, $key);
test_count($m, $key);
test_range($m, $key);
test_tag($m, $key);
test_delete($m, $key);
test_range($m, $key);