Closed gpedic closed 9 years ago
Thank you. I can't believe that bug persisted for two years.
I'm glad to help, also thank you for sharing your code. I'm using your library in a project and this issue just popped up, good thing I didn't take a look at the FAQ before I found the problem or I probably would just have changed the csms method :)
Sending multipart SMS with the default csms_method CSMS_16BIT_TAGS will never work because of the way this comparison is set up.
SmppClient::CSMS_PAYLOAD
is 1SmppClient::CSMS_16BIT_TAGS
is 0Therefore
(!SmppClient::CSMS_16BIT_TAGS != SmppClient::CSMS_PAYLOAD)
will be false.As far as I can see the only case where we don't need $parts later on is when
self::$csms_method == CSMS_PAYLOAD
.