Skip to content
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

[BUG] Sphinx Full text search on php8.1 #1513

Open
areis422 opened this issue Dec 5, 2023 · 1 comment
Open

[BUG] Sphinx Full text search on php8.1 #1513

areis422 opened this issue Dec 5, 2023 · 1 comment

Comments

@areis422
Copy link

areis422 commented Dec 5, 2023

Version(s) affected: tested on 3.10.13
PHP Version: 8.1.26
Description
Errors when error_reporting is on

Warning: Undefined property: SphinxClient::$_socket in /var/www/eventum-3.10.13/vendor/sphinx/php-sphinxapi/sphinxapi.php on line 473

Warning: Undefined property: SphinxClient::$_socket in /var/www/eventum-3.10.13/vendor/sphinx/php-sphinxapi/sphinxapi.php on line 474

Fatal error: Uncaught TypeError: fclose(): Argument #1 ($stream) must be of type resource, null given in /var/www/eventum-3.10.13/vendor/sphinx/php-sphinxapi/sphinxapi.php:474 Stack trace: #0 /var/www/eventum-3.10.13/vendor/sphinx/php-sphinxapi/sphinxapi.php(474): fclose() #1 [internal function]: SphinxClient->__destruct() #2 {main} thrown in /var/www/eventum-3.10.13/vendor/sphinx/php-sphinxapi/sphinxapi.php on line 474

How to reproduce
Enable sphinx using php8.1
do a search

Possible Solution
upgrade sphinx library to support php8.X ?

@glensc
Copy link
Member

glensc commented Feb 17, 2024

PR is welcome. but afaik the library update drops older sphinx support?

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

No branches or pull requests

2 participants