Austinb / GameQ

A PHP Gameserver Status Query Library
https://austinb.github.io/GameQ/
GNU Lesser General Public License v3.0
403 stars 136 forks source link

TeamSpeak 3 doesn't work using PHP 7.3 #488

Closed kraxarn closed 5 years ago

kraxarn commented 5 years ago

TeamSpeak 3 server always shows as offline using this library, even when other query libraries work using the same information and telnet working fine using both 127.0.0.1 and the public IP of the server. PHP doesn't throw any warnings or errors. Issue occurred when switching from openSUSE to Fedora, but the only difference I notice is the upgrade from PHP 7.2.5 to 7.3.7.

My code:

$files = [
    'servers.json'
];
$GameQ = new \GameQ\GameQ();
$GameQ->addServersFromFiles($files);
$GameQ->setOption('timeout', 3);

$results = $GameQ->process();

And servers.json:

[
    {
        "type": "teamspeak3",
        "host": "127.0.0.1:9987",
        "id":   "TS3",
        "options":
        {
            "query_port": 10011
        }
    }
]
kraxarn commented 5 years ago

never mind, just randomly started working without changing anything (it might've been related to some SELinux stuff)