Closed anton0xf closed 9 years ago
I locally replace it by MSG_WAITALL. But I don't understand is it good approach.
I wouldn't attempt to run SocketTransport on windows. It was made for berkeley sockets, which windows don't support.
You might have better luck with the windows compatible branch; https://github.com/onlinecity/php-smpp/tree/windows-compatible - although that has not been maintained for some time.
But it works after this simple change
Replacing MSG_DONTWAIT with MSG_WAITALL is a behavior change, and could introduce other issues with connection maintenance. Besides I don't think it's going to work on windows with the sockets extension.
Because of bug https://bugs.php.net/bug.php?id=48326 line sockettransport.class.php:327 fails on windows.