You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've also encountered this issue. Manifested itself as:
at HandleExceptions->handleError(8, 'A non well formed numeric value encountered', '.../Connection.php', 255, array('address' => 'tcp://nats:4222', 'timeout' => '3,600.000', 'errno' => 0, 'errstr' => '', 'fp' => resource, 'seconds' => 3.0))
in Connection.php line 255
Hi,
In phpnats/src/Nats/Connection.php line 180, you use the function "number_format" without the optional parameters.
number_format(3600, 3)
outputs "3,600.000", so the timeout is set to 3 seconds instead of 1 hour.Code should be
number_format($timeout, 3, '.', ''); //http://php.net/manual/en/function.number-format.php
This outputs the desired result: 3600.000
The text was updated successfully, but these errors were encountered: