-
Notifications
You must be signed in to change notification settings - Fork 99
Add support for PHP 8 #197
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
Conversation
Get multiple facets in single query to work
|
Seems Travis is hanging. |
|
Would be great to get this merged in. |
|
@Gemorroj Changes are made. Where are we waiting for? |
|
@ben221199 im not maintainer of that project) im waiting the change like you |
Ah okay. |
|
We need to get the CI to work first, will look into it when I have some time |
|
just had a tiny nit regarding the CHANGELOG modifications. but we'll need to look into the CI as @woxxy mentioned. |
|
The last version was |
|
Next version would be 3.0.0 since renaming would be a breaking change. Also, don't see the change pushed up yet. |
|
Well, that was stupid :D. |
oohnoitz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are a few nits regarding code style inconsistency. also, can you fix the travis builds so it passes?
Is there also a reason why I cannot see the Travis CI build? |
Never mind. This was an issue in my browser. |
ben221199
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect.
|
The inspection completed: 117 updated code elements |
|
@oohnoitz Is there anything possible at the moment? |
oohnoitz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's taking me some time to determine what actual changes were made and review them. i'm seeing a few tests that are commented out. is the plan to fix them in a subsequent PR? if that is the case, we can get the current work merged into a branch on this repo and have some follow up PRs done to fix the broken tests. otherwise, i can't go ahead and merge it in as-is since this is removing tests.
oohnoitz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leaving a few comments to track down missing/removed tests. and determine what went wrong. adding php8 support should have caused those tests to break at all.
| $this->stored = $this->affected_rows; | ||
| } else { | ||
| if (!$this->adapter->isDml()) { | ||
| // $this->stored = $this->affected_rows; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason this code was commented out?
| There's a sphinx.conf file in this directory. It uses a single RT index. Check the necessary directories, I ran Sphinx in `/usr/local/sphinx` | ||
| Choose the version you want to use (e.g. Sphinx 2, Sphinx 3 or Manticore). | ||
| Then set an environment variable: | ||
| - Sphinx 2: Typ `SEARCH_BUILD=SPHINX2` in the console |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: type is misspelled in this file.
| // * @throws SphinxQLException | ||
| // * @throws DatabaseException | ||
| // */ | ||
| // public function testMultiQuery(): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MultiQuery test was removed for some reason?
| class MultiResultSetTest extends TestCase | ||
| { | ||
|
|
||
| // /** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MultiResultSet test was removed for some reason?
| class FacetTest extends TestCase | ||
| { | ||
|
|
||
| // public static $DATA = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be removed if it isn't used at all in the test file.
| // */ | ||
| // public function testCreateFunction(): void | ||
| // { | ||
| // $this->createHelper()->createFunction('my_udf', 'INT', 'test_udf.so')->execute(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
createFunction test was removed for some reason?
| class PercolateTest extends TestCase | ||
| { | ||
|
|
||
| // /** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Manticore Percolate test file was removed for some reason?
| // * @throws DatabaseException | ||
| // * @throws SphinxQLException | ||
| // */ | ||
| // public function testUpdate(): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update tests were removed for some reason.
| // $this->assertEquals('10', $result[0][0]['id'] ?? null); | ||
| // $this->assertEquals('1', $result[1][0]['Value'] ?? null); | ||
| // $this->assertEquals('11', $result[2][0]['id'] ?? null); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's happening here? it should default to null
| $this->assertEquals('3', $result[1][2]['count(*)']); | ||
| $this->assertEquals('2', $result[1][3]['count(*)']); | ||
| foreach ([self::$connection, null] as $connection) { | ||
| // $result = $this->createSphinxQL() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
facet tests were removed for some reason? also not sure why we are returning early for Mysqli driver.
I think that is the easiest thing to do now. |
|
@ben221199 merged it into |
|
Nice. I will try to work on that one. But if other people feel free to help, they are welcome :D |
|
Tried updating to Is it bug or BC? If I just manually rename |
|
@red-led What version do you use? Sphinx 2, Sphinx 3 or MantiCore? |
|
@ben221199, Sphinx 2 |
|
Did you try Sphinx 3? |
|
Update: |
This PR adds support for PHP 8.