Closed aparkhomenko closed 9 years ago
When I try to use:
php -r '$pc = new PinbaClient(array(ini_get("pinba.server"))); $pc->setRequestTime(0.1);'
I've got the warning Warning: PinbaClient::setRequestTime(): request_time cannot be less than zero in Command line code on line 1
Warning: PinbaClient::setRequestTime(): request_time cannot be less than zero in Command line code on line 1
That's because you use: SET_METHOD_NUM(setRequestTime, request_time, float, "d");
SET_METHOD_NUM(setRequestTime, request_time, float, "d");
As I know php variables use type double but you compare with type float in that macros.
Merged, thanks!
When I try to use:
php -r '$pc = new PinbaClient(array(ini_get("pinba.server"))); $pc->setRequestTime(0.1);'
I've got the warning
Warning: PinbaClient::setRequestTime(): request_time cannot be less than zero in Command line code on line 1
That's because you use:
SET_METHOD_NUM(setRequestTime, request_time, float, "d");
As I know php variables use type double but you compare with type float in that macros.