Include both timeout as seconds and microseconds in exception message.
Format timeout values to avoid display of potentially longer float values.
When socket_select() fails we throw a Net_Gearman_Exception, but its message is assuming that $timeout is scalar, when it's actually an array of number of seconds and microseconds. This causes a notice. Fix the notice, and include both values in the exception message.
Sample PHP notice before change:
PHP Notice: Array to string conversion in /foo/bar/vendor/brianlmoon/net_gearman/Net/Gearman/Connection.php on line 391
When
socket_select()
fails we throw aNet_Gearman_Exception
, but its message is assuming that$timeout
is scalar, when it's actually an array of number of seconds and microseconds. This causes a notice. Fix the notice, and include both values in the exception message.Sample PHP notice before change:
Sample exception message after change: