Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure表PHP:url编码使延续令牌无效_Php_Azure Table Storage - Fatal编程技术网

Azure表PHP:url编码使延续令牌无效

Azure表PHP:url编码使延续令牌无效,php,azure-table-storage,Php,Azure Table Storage,我实现了一个方法来计算从查询中检索到的所有实体。如果实体超过1000,我将使用延续令牌继续 public static function countResults($storageAccountName, $tableName, $filter, $projections = null) { $count = 0; $options = null; $continue = false; do { $options = Azure::getE

我实现了一个方法来计算从查询中检索到的所有实体。如果实体超过1000,我将使用延续令牌继续

public static function countResults($storageAccountName, $tableName, $filter, $projections = null)
{
    $count = 0;
    $options = null;
    $continue = false;
    do
    {
        $options = Azure::getEntitiesFromTable($storageAccountName, $tableName, $filter, $projections, $options);

        $currentResults = $options->getEntities();
        $count += count($currentResults);

        // if specified it means there are other results
        $continue = (!is_null($options->getNextPartitionKey()) && !is_null($options->getNextRowKey()));             

    } while ($continue);

    return $count; 
}
只需返回QueryEntitiesResult对象,并将其用作执行过滤器的方法的输入,在该过滤器中获取分区键和行键,并将它们设置为传递给TableRestProxy->queryEntities的QueryEntitiesOptions对象

因此,没有任何内容应用于延续令牌。问题是TableRestProxy->queryEntities将$this->\u encodeODataurival应用于pkey和rowkey。这将使令牌无效,并始终返回相同的前1000个结果。 删除它工作的编码。这是图书馆的错误吗