Possible fix for the packet issue introduced in PHP 5.5