fixing undefined variable $linkResultsFlag #13

merged 1 commit into from May 15, 2011


None yet
2 participants

If $num_phases != 0 then $linkResultsFlag is undefined in line 403 and throws an E_NOTICE message: Notice: Undefined variable: linkResultsFlag in .../riak-php-client/riak.php on line 401

Repro code:

$client = new RiakClient();
$bucket = $client->bucket('stuff');

$mapFunc = 'function(value, keyData, arg) {
    if(value.key.indexOf("str") !== -1) return [value.key];
    return [];

$result = $client->add($bucket->getName())->map($mapFunc)->reduce('Riak.reduceSort')->run();

@KevBurnsJr KevBurnsJr added a commit that referenced this pull request May 15, 2011

@KevBurnsJr KevBurnsJr Merge pull request #13 from maxbeutel/upstream/undefined-linkResultsFlag
fixing undefined variable $linkResultsFlag

@KevBurnsJr KevBurnsJr merged commit e7cd5da into basho:master May 15, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment