Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.0

Bug #3296 wrong include path in protocol.php
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)    
Subscription  


 [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

Comments

 [2005-01-27 16:23 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!