【问题标题】:Using Cassandra with PHP 7.1在 PHP 7.1 中使用 Cassandra
【发布时间】:2017-11-04 05:32:46
【问题描述】:

根据我所做的研究,https://github.com/datastax/php-driver/ 似乎是将 Cassandra 与 PHP 结合使用的最佳选择。

但是当我尝试安装它时,我得到了错误:pecl/cassandra requires PHP (version >= 5.6.0, version <= 7.0.99), installed version is 7.1.4-1+deb.sury.org~trusty+1

我尝试安装https://github.com/aparkhomenko/php-cassandra,但没有成功,出现以下错误:warning: Could not find remote branch deprecated to clone. fatal: Remote branch deprecated not found in upstream origin Unexpected end of command stream

我尝试了http://evseevnn.github.io/php-cassandra-binary/,但似乎不支持 Cassandra 3.1

有没有办法在 PHP 7.1 中使用 Cassandra?如有必要,我愿意回到 PHP 7.0.x,但我想尽可能避免这样做。

感谢任何可以提供帮助的人

【问题讨论】:

    标签: php cassandra


    【解决方案1】:

    目前 Apache Cassandra 的 DataStax PHP 驱动程序不支持 PHP v7.1.x(仅 5.6.x 和 7.0.x 版本)。有一张JIRA票(PHP-155)添加支持;随时欢迎贡献。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-06-26
      • 1970-01-01
      • 2012-04-27
      • 2017-11-29
      • 2012-03-23
      • 1970-01-01
      • 2017-12-12
      • 2019-07-12
      相关资源
      最近更新 更多