onlinecity / php-smpp

PHP 5 based SMPP client library
232 stars 160 forks source link

Uncaught exception 'SmppException' with message 'Invalid Parameter Length.' #60

Open mehulsbhandari opened 8 years ago

mehulsbhandari commented 8 years ago

PHP Fatal error: Uncaught exception 'SmppException' with message 'Invalid Parameter Length.' in /var/www/smpp/smppclient.class.php:622 Stack trace:

0 /var/www/smpp/smppclient.class.php(479): SmppClient->sendCommand(2, 'ctpl4?ctpl4@123...')

1 /var/www/smpp/smppclient.class.php(134): SmppClient->_bind('ctpl4', 'ctpl4@1234', 2)

2 /var/www/smpp/sendsms.php(17): SmppClient->bindTransmitter('ctpl4', 'ctpl4@1234')

3 {main}

thrown in /var/www/smpp/smppclient.class.php on line 622

gurkin33 commented 6 years ago

Hello @mehulsbhandari ! Just add that code: SmppClient::$sms_null_terminate_octetstrings = false; It works for me.