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

Bug #19689 network_error_code in deliver_sm have to be Octet String instead of C-Octet Str
Submitted: 2012-11-02 23:17 UTC
From: tomasz Assigned:
Status: Open Package: Net_SMPP (version 0.4.5)
PHP Version: Irrelevant OS:
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 : 4 + 47 = ?

 
 [2012-11-02 23:17 UTC] tomasz (Tomasz Kusy)
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' => 2 ), 'network_error_code' => array( - 'type' => 'string', + 'type' => 'ostring', 'size' => 3 ), 'message_state' => array( Tomasz Kusy Test script: --------------- 04 23 00 03 03 00 1b Expected result: ---------------- network_error_code => 03 00 1b Actual result: -------------- network_error_code => 03

Comments