onlinecity / php-smpp

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

socket_recv error #71

Open kcviper opened 7 years ago

kcviper commented 7 years ago

Warning: socket_recv() expects parameter 4 to be long, string given in sockettransport.class.php on line 327

StefansArya commented 6 years ago

I think it's a bug on the PHP itself Based on documentation

you can change MSG_DONTWAIT to 8 if still error then 4, or maybe 2.

Or define the constant on top of your php script if(!defined('MSG_DONTWAIT')) define('MSG_DONTWAIT', 0x40);