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

Bug #1466 array_key_exists warning
Submitted: 2004-05-22 03:57 UTC
From: camo at secksi dot org Assigned: meebey
Status: Closed Package: Net_SmartIRC
PHP Version: 5.0.0RC1 (Release Candidate 1) OS: Linux 2.4.26
Roadmaps: (Not assigned)    
Subscription  


 [2004-05-22 03:57 UTC] camo at secksi dot org
Description: ------------ generates a warning on line 1942 for the array_key_exists() function. Reproduce code: --------------- just using the example code from examples\example3.php Actual result: -------------- Warning: array_key_exists(): The second argument should be either an array or an object in /usr/local/lib/php/Net/SmartIRC.php on line 1942

Comments

 [2004-06-17 09:36 UTC] thesaur
Here's a dump (admitedly using the no-frills ZDE debugging version of php-5.0.0RC2) Anyway, I suppose an update to the latest CVS code may fix the problem. I've not tried it, though. Here's the debug info that the bot outputs: Jun 16 19:09:49 SmartIRC.php(1495) DEBUG_IRCMESSAGES: sent: "NICK Net_SmartIRC" Jun 16 19:09:49 SmartIRC.php(1495) DEBUG_IRCMESSAGES: sent: "USER Net_SmartIRC 8 * :Net_SmartIRC Client 0.5.5 ($Revision: 1.54.2.4 $) (example3.php)" Jun 16 19:11:03 SmartIRC.php(1568) DEBUG_IRCMESSAGES: received: ":freenet.de 001 Net_Smart :Welcome to the Internet Relay Network Net_Smart!-Net_Smart@p5083EF7D.dip0.t-ipconnect.de" Jun 16 19:11:03 SmartIRC.php(1628) DEBUG_MESSAGEPARSER: ircdata nick: "" ident: "reenet.d" host: "reenet.de" type: "8192" from: "freenet.de" channel: "" message: "Welcome to the Internet Relay Network Net_Smart!-Net_Smart@p5083EF7D.dip0.t-ipconnect.de" <br /> <b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in <b>c:\Tools\php\PEAR\Net\SmartIRC.php</b> on line <b>1942</b><br /> Jun 16 19:11:03 SmartIRC.php(1943) DEBUG_MESSAGEHANDLER: ignoring unreconzied messagecode! "001" Jun 16 19:11:03 SmartIRC.php(1944) DEBUG_MESSAGEHANDLER: this IRC server (irc.freenet.de) doesn't conform to the RFC 2812! Jun 16 19:11:03 SmartIRC.php(1568) DEBUG_IRCMESSAGES: received: ":freenet.de 002 Net_Smart :Your host is freenet.de, running version 2.10.3p6+hemp2" Jun 16 19:11:03 SmartIRC.php(1628) DEBUG_MESSAGEPARSER: ircdata nick: "" ident: "reenet.d" host: "reenet.de" type: "8192" from: "freenet.de" channel: "" message: "Your host is freenet.de, running version 2.10.3p6+hemp2" <br /> <b>Warning</b>: array_key_exists() [<a href='function.array-key-exists'>function.array-key-exists</a>]: The second argument should be either an array or an object in <b>c:\Tools\php\PEAR\Net\SmartIRC.php</b> on line <b>1942</b><br /> Jun 16 19:11:03 SmartIRC.php(1943) DEBUG_MESSAGEHANDLER: ignoring unreconzied messagecode! "002" Jun 16 19:11:03 SmartIRC.php(1944) DEBUG_MESSAGEHANDLER: this IRC server (irc.freenet.de) doesn't conform to the RFC 2812!
 [2004-06-28 16:16 UTC] meebey
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. this problem relies on a PHP4 bug with class constructors, PHP5 doesn't call the wrong constructor and the nreplycodes array is not initialized... its fixed in CVS and next release (0.5.6) will contain the fix..