<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=Net_SmartIRC</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/16755" />
      <rdf:li rdf:resource="http://pear.php.net/bug/16531" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14924" />
      <rdf:li rdf:resource="http://pear.php.net/bug/13079" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12539" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/16755">
      <title>Net_SmartIRC: Feature/Change Request 16755 [Open] Not possible to join more than one chanel even if &quot;$channelarray&quot; is correctly</title>
      <link>http://pear.php.net/bugs/16755</link>
      <content:encoded><![CDATA[<pre>Net_SmartIRC Feature/Change Request
Reported by missterx
2009-11-01T07:01:20+00:00
PHP: 5.2.5 OS: Linux Package Version: 1.0.1

Description:
------------
function join($channelarray, $key = null, $priority = SMARTIRC_MEDIUM)

Contains fawlty code - corrected.

Test script:
---------------
// Correct code follows:
        if ($key !== null) {
            foreach ($channelarray as $idx =&gt; $value) {
                $this-&gt;_send('JOIN '.$value.' '.$key, $priority);
            }
        } else {
            foreach ($channelarray as $idx =&gt; $value) {
                $this-&gt;_send('JOIN '.$value, $priority);
            }
        }</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_SmartIRC Feature/Change Request
Reported by missterx
2009-11-01T07:01:20+00:00
PHP: 5.2.5 OS: Linux Package Version: 1.0.1

Description:
------------
function join($channelarray, $key = null, $priority = SMARTIRC_MEDIUM)

Contains fawlty code - corrected.

Test script:
---------------
// Correct code follows:
        if ($key !== null) {
            foreach ($channelarray as $idx =&gt; $value) {
                $this-&gt;_send('JOIN '.$value.' '.$key, $priority);
            }
        } else {
            foreach ($channelarray as $idx =&gt; $value) {
                $this-&gt;_send('JOIN '.$value, $priority);
            }
        }</pre>]]></description>
      <dc:date>2009-11-01T07:01:20+00:00</dc:date>
      <dc:creator>nazgul &amp;#x61;&amp;#116; eviladmins &amp;#x64;&amp;#111;&amp;#x74; se</dc:creator>
      <dc:subject>Net_SmartIRC Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/16531">
      <title>Net_SmartIRC: Bug 16531 [Open] Nickname changes wrong</title>
      <link>http://pear.php.net/bugs/16531</link>
      <content:encoded><![CDATA[<pre>Net_SmartIRC Bug
Reported by giggsey
2009-08-17T14:35:16+00:00
PHP: Irrelevant OS: N/A Package Version: 1.0.1

Description:
------------
Nickname changes are reflected wrong with nickname changes 
in $irc-&gt;channel

The first character of the nickname is removed when channel 
and nickname tracking is enabled.

Fix is:
open messagehandler.php

Line: 101
Replace: $newnick = substr($ircdata-&gt;rawmessageex[2], 1);
With: $newnick = $ircdata-&gt;rawmessageex[2];

NICK doesn't have the : at the start of the nickname.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_SmartIRC Bug
Reported by giggsey
2009-08-17T14:35:16+00:00
PHP: Irrelevant OS: N/A Package Version: 1.0.1

Description:
------------
Nickname changes are reflected wrong with nickname changes 
in $irc-&gt;channel

The first character of the nickname is removed when channel 
and nickname tracking is enabled.

Fix is:
open messagehandler.php

Line: 101
Replace: $newnick = substr($ircdata-&gt;rawmessageex[2], 1);
With: $newnick = $ircdata-&gt;rawmessageex[2];

NICK doesn't have the : at the start of the nickname.</pre>]]></description>
      <dc:date>2009-08-18T15:31:02+00:00</dc:date>
      <dc:creator>giggsey &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Net_SmartIRC Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14924">
      <title>Net_SmartIRC: Bug 14924 [Open] delayed timer with real socket</title>
      <link>http://pear.php.net/bugs/14924</link>
      <content:encoded><![CDATA[<pre>Net_SmartIRC Bug
Reported by cortexd
2008-10-30T11:29:14+00:00
PHP: 5.2.6 OS: Windows XP SP3 Package Version: 1.0.0

Description:
------------
with real socket, the timer handler is delayed if someone talks on the channel between two triggers

Test script:
---------------
&lt;?php
require_once 'Net/SmartIRC.php';

class Bot
{
    public function test(Net_SmartIRC $irc)
    {
        $irc-&gt;message(SMARTIRC_TYPE_CHANNEL, '#cortexd', 'every 10 seconds');
    }
}

$bot = new Bot();
$irc = new Net_SmartIRC();
$irc-&gt;setUseSockets(true);

$irc-&gt;registerTimehandler(10000, $bot, 'test');

$irc-&gt;connect('irc.quakenet.org', 6667);
$irc-&gt;login('SmartIRC', 'Net_SmartIRC', 8, 'smartirc');
$irc-&gt;join('#cortexd');
$irc-&gt;listen();

Expected result:
----------------
with &quot;$irc-&gt;setUseSockets(false);&quot; the result is :

[17:08:49] &lt;SmartIRC&gt; every 10 seconds
[17:08:59] &lt;SmartIRC&gt; every 10 seconds
[17:09:09] &lt;SmartIRC&gt; every 10 seconds
[17:09:19] &lt;SmartIRC&gt; every 10 seconds
[17:09:29] &lt;SmartIRC&gt; every 10 seconds
[17:09:39] &lt;SmartIRC&gt; every 10 seconds
[17:09:42] &lt;Cortexd&gt; lol
[17:09:44] &lt;Cortexd&gt; lol
[17:09:45] &lt;Cortexd&gt; lol
[17:09:49] &lt;SmartIRC&gt; every 10 seconds

Actual result:
--------------
with &quot;$irc-&gt;setUseSockets(true);&quot; the result is :

[17:11:11] &lt;SmartIRC&gt; every 10 seconds
[17:11:21] &lt;SmartIRC&gt; every 10 seconds
[17:11:31] &lt;SmartIRC&gt; every 10 seconds
[17:11:42] &lt;SmartIRC&gt; every 10 seconds
[17:11:52] &lt;SmartIRC&gt; every 10 seconds
[17:12:02] &lt;SmartIRC&gt; every 10 seconds
[17:12:13] &lt;SmartIRC&gt; every 10 seconds
[17:12:23] &lt;SmartIRC&gt; every 10 seconds
[17:12:26] &lt;Cortexd&gt; lol
[17:12:28] &lt;Cortexd&gt; lol
[17:12:29] &lt;Cortexd&gt; lol
[17:12:40] &lt;SmartIRC&gt; every 10 seconds
[17:12:50] &lt;SmartIRC&gt; every 10 seconds

when somebody talks, the timer is delayed !</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_SmartIRC Bug
Reported by cortexd
2008-10-30T11:29:14+00:00
PHP: 5.2.6 OS: Windows XP SP3 Package Version: 1.0.0

Description:
------------
with real socket, the timer handler is delayed if someone talks on the channel between two triggers

Test script:
---------------
&lt;?php
require_once 'Net/SmartIRC.php';

class Bot
{
    public function test(Net_SmartIRC $irc)
    {
        $irc-&gt;message(SMARTIRC_TYPE_CHANNEL, '#cortexd', 'every 10 seconds');
    }
}

$bot = new Bot();
$irc = new Net_SmartIRC();
$irc-&gt;setUseSockets(true);

$irc-&gt;registerTimehandler(10000, $bot, 'test');

$irc-&gt;connect('irc.quakenet.org', 6667);
$irc-&gt;login('SmartIRC', 'Net_SmartIRC', 8, 'smartirc');
$irc-&gt;join('#cortexd');
$irc-&gt;listen();

Expected result:
----------------
with &quot;$irc-&gt;setUseSockets(false);&quot; the result is :

[17:08:49] &lt;SmartIRC&gt; every 10 seconds
[17:08:59] &lt;SmartIRC&gt; every 10 seconds
[17:09:09] &lt;SmartIRC&gt; every 10 seconds
[17:09:19] &lt;SmartIRC&gt; every 10 seconds
[17:09:29] &lt;SmartIRC&gt; every 10 seconds
[17:09:39] &lt;SmartIRC&gt; every 10 seconds
[17:09:42] &lt;Cortexd&gt; lol
[17:09:44] &lt;Cortexd&gt; lol
[17:09:45] &lt;Cortexd&gt; lol
[17:09:49] &lt;SmartIRC&gt; every 10 seconds

Actual result:
--------------
with &quot;$irc-&gt;setUseSockets(true);&quot; the result is :

[17:11:11] &lt;SmartIRC&gt; every 10 seconds
[17:11:21] &lt;SmartIRC&gt; every 10 seconds
[17:11:31] &lt;SmartIRC&gt; every 10 seconds
[17:11:42] &lt;SmartIRC&gt; every 10 seconds
[17:11:52] &lt;SmartIRC&gt; every 10 seconds
[17:12:02] &lt;SmartIRC&gt; every 10 seconds
[17:12:13] &lt;SmartIRC&gt; every 10 seconds
[17:12:23] &lt;SmartIRC&gt; every 10 seconds
[17:12:26] &lt;Cortexd&gt; lol
[17:12:28] &lt;Cortexd&gt; lol
[17:12:29] &lt;Cortexd&gt; lol
[17:12:40] &lt;SmartIRC&gt; every 10 seconds
[17:12:50] &lt;SmartIRC&gt; every 10 seconds

when somebody talks, the timer is delayed !</pre>]]></description>
      <dc:date>2008-10-30T11:29:14+00:00</dc:date>
      <dc:creator>cortexd &amp;#x61;&amp;#116; wanadoo &amp;#x64;&amp;#111;&amp;#x74; fr</dc:creator>
      <dc:subject>Net_SmartIRC Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/13079">
      <title>Net_SmartIRC: Bug 13079 [Open] Does not support founder/admin/half-op modes</title>
      <link>http://pear.php.net/bugs/13079</link>
      <content:encoded><![CDATA[<pre>Net_SmartIRC Bug
Reported by njpappas
2008-02-06T17:34:22+00:00
PHP: 5.2.5 OS: N/A Package Version: 1.0.0

Description:
------------
The 1.0.0 package handles unknown usermodes incorrectly, prepending them to the nickname and thus prevents any user metadata from getting stored or called correctly (e.g., the $host member variable for a user is not populated).  Newer IRCd's such as Rizon use +qah (founder ~, admin &amp;, half-op %), and this is pretty standardized for IRCd's supporting these extended usermodes.

I've written a patch to support these modes.  My patch also addresses an earlier feature request I filed regarding execution of multiple event handlers.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_SmartIRC Bug
Reported by njpappas
2008-02-06T17:34:22+00:00
PHP: 5.2.5 OS: N/A Package Version: 1.0.0

Description:
------------
The 1.0.0 package handles unknown usermodes incorrectly, prepending them to the nickname and thus prevents any user metadata from getting stored or called correctly (e.g., the $host member variable for a user is not populated).  Newer IRCd's such as Rizon use +qah (founder ~, admin &amp;, half-op %), and this is pretty standardized for IRCd's supporting these extended usermodes.

I've written a patch to support these modes.  My patch also addresses an earlier feature request I filed regarding execution of multiple event handlers.</pre>]]></description>
      <dc:date>2008-02-06T17:34:22+00:00</dc:date>
      <dc:creator>php &amp;#x61;&amp;#116; radicand &amp;#x64;&amp;#111;&amp;#x74; org</dc:creator>
      <dc:subject>Net_SmartIRC Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12539">
      <title>Net_SmartIRC: Bug 12539 [Verified] Flaw in timeout detection.</title>
      <link>http://pear.php.net/bugs/12539</link>
      <content:encoded><![CDATA[<pre>Net_SmartIRC Bug
Reported by topnotcher
2007-11-28T00:09:01+00:00
PHP: 5.2.4 OS: Linux Package Version: 1.0.0

Description:
------------
Summary: When auto reconnect is on, SmartIRC disconnects if it doesn't receive for 300 seconds.

Problem: the code expects that the server will send a ping in that amount of time, but this is not necessarily the case; an active client (i.e. dots of sending) may not be pinged because the server knows he is alive.  I encountered a problem where I was sending lots of information to a log channel, but not getting any data sent to me (as is to be expected). SmartIRC detected a receive timeout and reconnected.


Possible Solution: PING the server after 1/2 the receive timeout (in this case, 150 seconds). If a response is received, then the _lastrx is set. Else, a timeout should be detected at 300 seconds (150 seconds after the ping is sent)</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_SmartIRC Bug
Reported by topnotcher
2007-11-28T00:09:01+00:00
PHP: 5.2.4 OS: Linux Package Version: 1.0.0

Description:
------------
Summary: When auto reconnect is on, SmartIRC disconnects if it doesn't receive for 300 seconds.

Problem: the code expects that the server will send a ping in that amount of time, but this is not necessarily the case; an active client (i.e. dots of sending) may not be pinged because the server knows he is alive.  I encountered a problem where I was sending lots of information to a log channel, but not getting any data sent to me (as is to be expected). SmartIRC detected a receive timeout and reconnected.


Possible Solution: PING the server after 1/2 the receive timeout (in this case, 150 seconds). If a response is received, then the _lastrx is set. Else, a timeout should be detected at 300 seconds (150 seconds after the ping is sent)</pre>]]></description>
      <dc:date>2007-11-28T16:52:05+00:00</dc:date>
      <dc:creator>mario &amp;#x61;&amp;#116; mafiareturns &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Net_SmartIRC Bug</dc:subject>
    </item>
</rdf:RDF>
