manticoresearch-php
                                
                                 manticoresearch-php copied to clipboard
                                
                                    manticoresearch-php copied to clipboard
                            
                            
                            
                        unix socket, php8 match keyword
UnixSocket support added. Class "Match" renamed to "QueryMatch" because of PHP8 'match' reserved keyword.
Hi, as I said here  Match is planned to be renamed to MatchQuery, not QueryMatch..
Also please validate the code against phpcs --standard=PSR2.
Thanks
Hi, okay I will do that and let you know.
Hi @adriannuta, I used Swoole as a client in this transport. Is it good for the project?
@mitsh any advantage in this context to use the Swoole Client vs something more native like stream? One would have to install the Swoole extension.
@adriannuta yeah I got it. I will change the Swoole Client to a native one like fsockopen.
fsockopen (or stream_socket_client) sounds better. Also have you tried with curl using CURLOPT_UNIX_SOCKET_PATH ? Haven't tested, but curl should be able to open sockets since php 7.0 (not sure which would be better, curl vs fsockopen/stream_socket_client)
yes, I think so it is better(fsockopen). I've also tried as you mentioned with curl but it is not a stable option. php-curl extension should compile with the latest curl library.
Please note that I committed today changes for compatibility with PHP 8.0, including the rename of the Match class.
The unixsocket support task is still not finished as discussed above.
after a very long time. hello guys, if you haven't added unixsocket support yet. i can do the fixes and rerequest PR for it.
i can do the fixes and rerequest PR for it.
Please do