php-driver
php-driver copied to clipboard
PHP-239 - PHP 8
https://datastax-oss.atlassian.net/browse/PHP-239
@mpenick @avalanche123
@adutra
@absurdfarce would be the right one to look into this.
With these changes, I get following error when trying to access a row on 8.1:
Uncaught Error: Cannot use object of type Cassandra\\Rows as array
The code is as simple as:
$res = $session->execute("select * from foobar where key='value'");
if (!$res->valid())
return null;
$row = $res[0]; // error happens here
Worked fine with PHP 7.4 and the original datastax cassandra driver. So ArrayAccess seems to be broken here.
I can reproduce... sadly this was not unit tested 😞
What is missing exactly? I'm studying about Cassandra and ScyllaDB, since my main lang is PHP it was about to help me a lot on my studies...
@qkdreyer how can I get in touch with you? I saw your PHP 8.1 implementations and I'm wondering if there's any chance to use it for a demo.
Could you update pecl for php 8.x please?
I think that its impossible for now since the holders of pecl is from DataStax.
@DanielHe4rt Whose repository is this?
Is was a fork from he4rt/ScyllaDB
Ping me at discord or twitter!
danielhe4rt#0001 @danielhe4rtless