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

Bug #19209 Field message_state is considered a optional but is mandatory for query_sm_resp
Submitted: 2012-01-09 19:35 UTC
From: blesenechal Assigned:
Status: Open Package: Net_SMPP (version 0.4.5)
PHP Version: 5.2.17 OS: All
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 : 32 + 50 = ?

 
 [2012-01-09 19:35 UTC] blesenechal (Bruno Lesénéchal)
Description: ------------ The field "message_state" (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->fieldIsOptional($field)) { break; } Expected result: ---------------- When parsing a query_sm_resp command, the message_state field should not be ignored.

Comments