<?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_SMPP</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/20958" />
      <rdf:li rdf:resource="http://pear.php.net/bug/19689" />
      <rdf:li rdf:resource="http://pear.php.net/bug/19209" />

     </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/20958">
      <title>Net_SMPP: Bug 20958 [Open] Typo error in  Net/SMPP/Command/deliver_sm.php</title>
      <link>http://pear.php.net/bugs/20958</link>
      <content:encoded><![CDATA[<pre>Net_SMPP Bug
Reported by tomasz
2015-10-06T20:06:00+00:00
PHP: Irrelevant OS: Lunux Package Version: 0.4.5

Description:
------------
Typo error in 
Net/SMPP/Command/deliver_sm.php
Line 413:
        'callback_num' =&gt; array(
-           'type' =&gt; 'sting',
+          'type' =&gt; 'string',
            'min' =&gt; 4,
            'max' =&gt; 19
        ),</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_SMPP Bug
Reported by tomasz
2015-10-06T20:06:00+00:00
PHP: Irrelevant OS: Lunux Package Version: 0.4.5

Description:
------------
Typo error in 
Net/SMPP/Command/deliver_sm.php
Line 413:
        'callback_num' =&gt; array(
-           'type' =&gt; 'sting',
+          'type' =&gt; 'string',
            'min' =&gt; 4,
            'max' =&gt; 19
        ),</pre>]]></description>
      <dc:date>2015-10-06T20:06:00+00:00</dc:date>
      <dc:creator>t &amp;#x64;&amp;#111;&amp;#x74; kusy &amp;#x61;&amp;#116; sare &amp;#x64;&amp;#111;&amp;#x74; pl</dc:creator>
      <dc:subject>Net_SMPP Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/19689">
      <title>Net_SMPP: Bug 19689 [Open] network_error_code in deliver_sm have to be Octet String instead of C-Octet Str</title>
      <link>http://pear.php.net/bugs/19689</link>
      <content:encoded><![CDATA[<pre>Net_SMPP Bug
Reported by tomasz
2012-11-02T23:17:42+00:00
PHP: Irrelevant OS:  Package Version: 0.4.5

Description:
------------
When network_error_code is sent and byte of is 0x00, then is problem with decoding (invalid value) and whole PDU can be broken.

04 23 00 03 
03 00 1b

If 0x0423 is at end of PDU:
PHP Warning:  unpack(): Type n: not enough input, need 2, have 1 in /usr/share/php/Net/SMPP/Command.php on line 539

PHP Warning:  implode(): Invalid arguments passed in /usr/share/php/Net/SMPP/Command.php on line 539

Possible patch: 
 ./deliver_sm.php
@@ -437,7 +437,7 @@
             'size' =&gt; 2
         ),
         'network_error_code' =&gt; array(
-            'type' =&gt; 'string',
+            'type' =&gt; 'ostring',
             'size' =&gt; 3
         ),
         'message_state' =&gt; array(

Tomasz Kusy

Test script:
---------------
04 23 00 03 03 00 1b

Expected result:
----------------
network_error_code =&gt; 03 00 1b

Actual result:
--------------
network_error_code =&gt; 03</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_SMPP Bug
Reported by tomasz
2012-11-02T23:17:42+00:00
PHP: Irrelevant OS:  Package Version: 0.4.5

Description:
------------
When network_error_code is sent and byte of is 0x00, then is problem with decoding (invalid value) and whole PDU can be broken.

04 23 00 03 
03 00 1b

If 0x0423 is at end of PDU:
PHP Warning:  unpack(): Type n: not enough input, need 2, have 1 in /usr/share/php/Net/SMPP/Command.php on line 539

PHP Warning:  implode(): Invalid arguments passed in /usr/share/php/Net/SMPP/Command.php on line 539

Possible patch: 
 ./deliver_sm.php
@@ -437,7 +437,7 @@
             'size' =&gt; 2
         ),
         'network_error_code' =&gt; array(
-            'type' =&gt; 'string',
+            'type' =&gt; 'ostring',
             'size' =&gt; 3
         ),
         'message_state' =&gt; array(

Tomasz Kusy

Test script:
---------------
04 23 00 03 03 00 1b

Expected result:
----------------
network_error_code =&gt; 03 00 1b

Actual result:
--------------
network_error_code =&gt; 03</pre>]]></description>
      <dc:date>2012-11-02T23:17:42+00:00</dc:date>
      <dc:creator>t &amp;#x64;&amp;#111;&amp;#x74; kusy &amp;#x61;&amp;#116; sare &amp;#x64;&amp;#111;&amp;#x74; pl</dc:creator>
      <dc:subject>Net_SMPP Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/19209">
      <title>Net_SMPP: Bug 19209 [Open] Field message_state is considered a optional but is mandatory for query_sm_resp</title>
      <link>http://pear.php.net/bugs/19209</link>
      <content:encoded><![CDATA[<pre>Net_SMPP Bug
Reported by blesenechal
2012-01-09T19:35:38+00:00
PHP: 5.2.17 OS: All Package Version: 0.4.5

Description:
------------
The field &quot;message_state&quot; (0x0427) is used in 3 commands :
- deliver_sm (optional)
- data_sm (optional)
- query_sm_resp (mandatory).

As this field is defined as optional in the _optionalParams() method of Net_SMPP_Command, it will be ignored in the parseParams() method :

(line 488)
// Abort the loop if we're at the end of the data, or if we
// encounter an optional paramater
if ($pos == $dl ||
    $this-&gt;fieldIsOptional($field)) {
    break;
}

Expected result:
----------------
When parsing a query_sm_resp command,  the message_state field should not be ignored.</pre>]]></content:encoded>
      <description><![CDATA[<pre>Net_SMPP Bug
Reported by blesenechal
2012-01-09T19:35:38+00:00
PHP: 5.2.17 OS: All Package Version: 0.4.5

Description:
------------
The field &quot;message_state&quot; (0x0427) is used in 3 commands :
- deliver_sm (optional)
- data_sm (optional)
- query_sm_resp (mandatory).

As this field is defined as optional in the _optionalParams() method of Net_SMPP_Command, it will be ignored in the parseParams() method :

(line 488)
// Abort the loop if we're at the end of the data, or if we
// encounter an optional paramater
if ($pos == $dl ||
    $this-&gt;fieldIsOptional($field)) {
    break;
}

Expected result:
----------------
When parsing a query_sm_resp command,  the message_state field should not be ignored.</pre>]]></description>
      <dc:date>2012-01-09T19:35:38+00:00</dc:date>
      <dc:creator>bruno &amp;#x64;&amp;#111;&amp;#x74; lesenechal &amp;#x61;&amp;#116; orange &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>Net_SMPP Bug</dc:subject>
    </item>
</rdf:RDF>
