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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 34 + 50 = ?

 
 [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] aidan
Ahh, how terrible that a bug like this made it into a release! The whole method of including drivers was rewritten (as is most of the class) in the current CVS version, but thanks for the notification.