Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling of 0-length messages #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Handling of 0-length messages #52

wants to merge 2 commits into from

Conversation

danon
Copy link

@danon danon commented Aug 6, 2015

SmppSms $sms;
$sms->parseSms(); // goes nuts when MessageLength byte is equals to 0

It's also against specification, which states:

The maximum message length which can be specified in sm_length field (see section 5.2.21) is 254 octets. If an ESME wishes to submit a message of length greater than 254 octets, the sm_length field must be set to NULL and the message_payload optional parameter must be populated with the message length value and user data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant