Home » Networking » Net_GameServerQuery » Bug #3296
wrong include path in protocol.php
Details
| Submitted | 2005-01-26 09:01 UTC |
|---|---|
| From | martel at post dot pl |
| Assigned | aidan |
| Status | Closed |
| Package | Net_GameServerQuery |
| PHP Version | 5.0.3 |
| OS | Windows 2000 |
| Roadmaps | (Not assigned) |
Comments
[2005-01-26 09:01 UTC] martel at post dot pl
Description:
------------
There is an error when you try to execute a query.
Line 82/83 of Protocol.php:
// Load the protocol class
$filename = 'GameServerQuery/Protocol/' . $result['protocol'] . '.php';
Changing it to the following seems to fix the problem (as all of us have a pear dir in path, right?):
$filename = 'Net/GameServerQuery/Protocol/' . $result['protocol'] . '.php';
Reproduce code:
---------------
$gsq = new Net_GameServerQuery();
$gsq->addServer('halflife', 'afs.autocom.pl', '27015');
$res = $gsq->execute();
Actual result:
--------------
Warning: Net_GameServerQuery_Process::process(GameServerQuery/Protocol/HalfLife.php) [function.process]: failed to open stream: No such file or directory in d:\php5\pear\Net\GameServerQuery\Process.php on line 83