PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Networking » Net_GameServerQuery » Bug #3296

wrong include path in protocol.php

Details

Submitted2005-01-26 09:01 UTC
Frommartel at post dot pl
Assignedaidan
StatusClosed
PackageNet_GameServerQuery
PHP Version5.0.3
OSWindows 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