From 7987bba7435cd7eec85c2faf1457fb2faebdbe12 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 26 Jul 2006 06:59:40 +0000 Subject: [PATCH] improve connection timeout check (implements FR #38210) --- ext/oci8/oci8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 704463a6e1..b34316da0e 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -1056,7 +1056,7 @@ php_oci_connection *php_oci_do_connect_ex(char *username, int username_len, char * 1) next_ping > 0, which means that ping_interval is not -1 (aka "Off") * 2) current_timestamp > next_ping, which means "it's time to check if it's still alive" * */ - if ( (connection->next_ping > 0) && (timestamp > connection->next_ping) && !php_oci_connection_ping(connection TSRMLS_CC)) { + if ( (connection->next_ping > 0) && (timestamp >= connection->next_ping) && !php_oci_connection_ping(connection TSRMLS_CC)) { /* server died */ } else { -- 2.40.0