Skip to content

v1.3.1 - Merge duration and documentation fixes #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion behat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ default:
tags: "[email protected]&&[email protected]&&~@broken"
contexts:
- FeatureContext:
cassandra_version: 3.0.8
cassandra_version: "3.10"

cassandra-version-2.2:
formatters:
Expand Down
4 changes: 4 additions & 0 deletions doxygen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@
text.gsub!(/(\/\*\*[\s\S]*?@return\s+([^\s]*)[\s\S]*?\*\/[\s\S]*?)((public|protected|private)(\s+static)?)?\s+function\s+([\S]*?)\s*?\(/, '\1 \3 \2 function \6(')
text.gsub!(/\@return/, '@retval')

text.gsub!(/function_/, 'function')
text.gsub!(/Function_/, 'Function')
text.gsub!(/Float_/, 'Float')

puts text
4 changes: 2 additions & 2 deletions ext/config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ if test "$PHP_CASSANDRA" != "no"; then
AC_MSG_CHECKING([for supported DataStax C/C++ driver version])
PHP_CASSANDRA_FOUND_CASSANDRA_VERSION=`$AWK '/CASS_VERSION_MAJOR/ {printf $3"."} /CASS_VERSION_MINOR/ {printf $3"."} /CASS_VERSION_PATCH/ {printf $3}' $CPP_DRIVER_DIR/include/cassandra.h`
PHP_CASSANDRA_FOUND_CASSANDRA_VERSION_NUMBER=`echo "${PHP_CASSANDRA_FOUND_CASSANDRA_VERSION}" | $AWK 'BEGIN { FS = "."; } { printf "%d", ([$]1 * 100 + [$]2) * 100 + [$]3;}'`
if test "$PHP_CASSANDRA_FOUND_CASSANDRA_VERSION_NUMBER" -lt "20600"; then
AC_MSG_ERROR([not supported. Driver version 2.6.0+ required (found $PHP_CASSANDRA_FOUND_CASSANDRA_VERSION)])
if test "$PHP_CASSANDRA_FOUND_CASSANDRA_VERSION_NUMBER" -lt "20700"; then
AC_MSG_ERROR([not supported. Driver version 2.7.0+ required (found $PHP_CASSANDRA_FOUND_CASSANDRA_VERSION)])
else
AC_MSG_RESULT([supported ($PHP_CASSANDRA_FOUND_CASSANDRA_VERSION)])
fi
Expand Down
2 changes: 1 addition & 1 deletion ext/config.w32
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG_ENABLE("cassandra", "Enable DataStax PHP Cassandra extension", "no");

// Establish the minimum Cassandra C/C++ driver and PHP version
var driver_minimum_major = 2;
var driver_minimum_minor = 6;
var driver_minimum_minor = 7;
var driver_minimum_patch = 0;
var driver_minimum_version = driver_minimum_major + "." + driver_minimum_minor + "." + driver_minimum_patch;
var php_minimum_major = 5;
Expand Down
29 changes: 15 additions & 14 deletions ext/doc/Cassandra.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,31 @@ final class Cassandra {
* has been written on the Coordinator. Requests with this consistency level
* are not guranteed to make it to Replica nodes.
*
* @see ExecutionOptions::__construct()
* @see Session::execute()
*/
const CONSISTENCY_ANY = 0;

/**
* Consistency level ONE guarantees that data has been written to at least
* one Replica node.
*
* @see ExecutionOptions::__construct()
* @see Session::execute()
*/
const CONSISTENCY_ONE = 1;

/**
* Consistency level TWO guarantees that data has been written to at least
* two Replica nodes.
*
* @see ExecutionOptions::__construct()
* @see Session::execute()
*/
const CONSISTENCY_TWO = 2;

/**
* Consistency level THREE guarantees that data has been written to at least
* three Replica nodes.
*
* @see ExecutionOptions::__construct()
* @see Session::execute()
*/
const CONSISTENCY_THREE = 3;

Expand All @@ -65,23 +65,23 @@ final class Cassandra {
* ceiling function and `RF` is the replication factor used. For example,
* for a replication factor of `5`, the majority is `ceil(5 / 2 + 1) = 3`.
*
* @see ExecutionOptions::__construct()
* @see Session::execute()
*/
const CONSISTENCY_QUORUM = 4;

/**
* Consistency level ALL guarantees that data has been written to all
* Replica nodes.
*
* @see ExecutionOptions::__construct()
* @see Session::execute()
*/
const CONSISTENCY_ALL = 5;

/**
* Same as `CONSISTENCY_QUORUM`, but confined to the local data center. This
* consistency level works only with `NetworkTopologyStrategy` replication.
*
* @see ExecutionOptions::__construct()
* @see Session::execute()
*/
const CONSISTENCY_LOCAL_QUORUM = 6;

Expand All @@ -90,35 +90,36 @@ final class Cassandra {
* least a majority Replica nodes in all datacenters. This consistency level
* works only with `NetworkTopologyStrategy` replication.
*
* @see ExecutionOptions::__construct()
* @see Session::execute()
*/
const CONSISTENCY_EACH_QUORUM = 7;

/**
* This is a serial consistency level, it is used in conditional updates,
* e.g. (`CREATE|INSERT ... IF NOT EXISTS`), and should be specified as the
* `serial_consistency` option of the ExecutionOptions instance.
* `serial_consistency` execution option when invoking `session.execute`
* or `session.execute_async`.
*
* Consistency level SERIAL, when set, ensures that a Paxos commit fails if
* any of the replicas is down.
*
* @see ExecutionOptions::__construct()
* @see Session::execute()
*/
const CONSISTENCY_SERIAL = 8;

/**
* Same as `CONSISTENCY_SERIAL`, but confined to the local data center. This
* consistency level works only with `NetworkTopologyStrategy` replication.
*
* @see ExecutionOptions::__construct()
* @see Session::execute()
*/
const CONSISTENCY_LOCAL_SERIAL = 9;

/**
* Same as `CONSISTENCY_ONE`, but confined to the local data center. This
* consistency level works only with `NetworkTopologyStrategy` replication.
*
* @see ExecutionOptions::__construct()
* @see Session::execute()
*/
const CONSISTENCY_LOCAL_ONE = 10;

Expand Down Expand Up @@ -378,12 +379,12 @@ final class Cassandra {
/**
* The current version of the extension.
*/
const VERSION = '1.3.0-devel';
const VERSION = '1.3.0';

/**
* The version of the cpp-driver the extension is compiled against.
*/
const CPP_DRIVER_VERSION = '2.6.0-dev';
const CPP_DRIVER_VERSION = '2.7.0';

/**
* Creates a new cluster builder for constructing a Cluster object.
Expand Down
18 changes: 9 additions & 9 deletions ext/doc/Cassandra/DefaultAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,63 +24,63 @@
final class DefaultAggregate implements Aggregate {

/**
* {@inheritDoc}
* Returns the full name of the aggregate
*
* @return string Full name of the aggregate including name and types
*/
public function name() { }

/**
* {@inheritDoc}
* Returns the simple name of the aggregate
*
* @return string Simple name of the aggregate
*/
public function simpleName() { }

/**
* {@inheritDoc}
* Returns the argument types of the aggregate
*
* @return array Argument types of the aggregate
*/
public function argumentTypes() { }

/**
* {@inheritDoc}
* Returns the state function of the aggregate
*
* @return Function State public function of the aggregate
*/
public function stateFunction() { }

/**
* {@inheritDoc}
* Returns the final function of the aggregate
*
* @return Function Final public function of the aggregate
*/
public function finalFunction() { }

/**
* {@inheritDoc}
* Returns the initial condition of the aggregate
*
* @return Value Initial condition of the aggregate
*/
public function initialCondition() { }

/**
* {@inheritDoc}
* Returns the state type of the aggregate
*
* @return Type State type of the aggregate
*/
public function stateType() { }

/**
* {@inheritDoc}
* Returns the return type of the aggregate
*
* @return Type Return type of the aggregate
*/
public function returnType() { }

/**
* {@inheritDoc}
* Returns the signature of the aggregate
*
* @return string Signature of the aggregate (same as name())
*/
Expand Down
4 changes: 2 additions & 2 deletions ext/doc/Cassandra/DefaultCluster.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
final class DefaultCluster implements Cluster {

/**
* {@inheritDoc}
* Creates a new Session instance.
*
* @param string $keyspace Optional keyspace name
* @param int $timeout Optional timeout
Expand All @@ -36,7 +36,7 @@ final class DefaultCluster implements Cluster {
public function connect($keyspace, $timeout) { }

/**
* {@inheritDoc}
* Creates a new Session instance.
*
* @param string $keyspace Optional keyspace name
*
Expand Down
14 changes: 7 additions & 7 deletions ext/doc/Cassandra/DefaultColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,49 +24,49 @@
final class DefaultColumn implements Column {

/**
* {@inheritDoc}
* Returns the name of the column.
*
* @return string Name of the column or null
*/
public function name() { }

/**
* {@inheritDoc}
* Returns the type of the column.
*
* @return Type Type of the column
*/
public function type() { }

/**
* {@inheritDoc}
* Returns whether the column is in descending or ascending order.
*
* @return bool Whether the column is stored in descending order.
*/
public function isReversed() { }

/**
* {@inheritDoc}
* Returns true for static columns.
*
* @return bool Whether the column is static
*/
public function isStatic() { }

/**
* {@inheritDoc}
* Returns true for frozen columns.
*
* @return bool Whether the column is frozen
*/
public function isFrozen() { }

/**
* {@inheritDoc}
* Returns name of the index if defined.
*
* @return string Name of the index if defined or null
*/
public function indexName() { }

/**
* {@inheritDoc}
* Returns index options if present.
*
* @return string Index options if present or null
*/
Expand Down
18 changes: 9 additions & 9 deletions ext/doc/Cassandra/DefaultFunction.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,58 +24,58 @@
final class DefaultFunction implements Function_ {

/**
* {@inheritDoc}
* Returns the full name of the function
*
* @return string Full name of the function including name and types
*/
public function name() { }

/**
* {@inheritDoc}
* Returns the simple name of the function
*
* @return string Simple name of the function
*/
public function simpleName() { }

/**
* {@inheritDoc}
* Returns the arguments of the function
*
* @return array Arguments of the function
*/
public function arguments() { }

/**
* {@inheritDoc}
* Returns the return type of the function
*
* @return Type Return type of the function
*/
public function returnType() { }

/**
* {@inheritDoc}
* Returns the signature of the function
*
* @return string Signature of the function (same as name())
*/
public function signature() { }

/**
* {@inheritDoc}
* Returns the lanuage of the function
*
* @return string Language used by the function
*/
public function language() { }

/**
* {@inheritDoc}
* Returns the body of the function
*
* @return string Body of the function
*/
public function body() { }

/**
* {@inheritDoc}
* Determines if a function is called when the value is null.
*
* @return bool
* @return bool Returns whether the function is called when the input columns are null
*/
public function isCalledOnNullInput() { }

Expand Down
Loading