We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0858f08 commit 7171aceCopy full SHA for 7171ace
redis_session.c
@@ -469,10 +469,10 @@ PS_OPEN_FUNC(redis)
469
weight = zval_get_long(param);
470
}
471
if ((param = zend_hash_str_find(Z_ARRVAL(params), "timeout", sizeof("timeout") - 1)) != NULL) {
472
- timeout = atof(Z_STRVAL_P(param));
+ timeout = zval_get_double(param);
473
474
if ((param = zend_hash_str_find(Z_ARRVAL(params), "read_timeout", sizeof("read_timeout") - 1)) != NULL) {
475
- read_timeout = atof(Z_STRVAL_P(param));
+ read_timeout = zval_get_double(param);
476
477
if ((param = zend_hash_str_find(Z_ARRVAL(params), "persistent", sizeof("persistent") - 1)) != NULL) {
478
persistent = (atol(Z_STRVAL_P(param)) == 1 ? 1 : 0);
0 commit comments