From ef792320e7a5acbb7361ab4dfcb9624c115b7e39 Mon Sep 17 00:00:00 2001 From: michael-grunder Date: Wed, 27 Mar 2013 10:21:18 -0700 Subject: Introspection methods This commit adds methods to get information about the state of our phpredis object, such as what host/port we are connected to, our timeout, etc... The following methods have been added: getHost() getPort() getDBNum() getTimeout() getReadTimeout() isConnected() getPersistentID() getAuth() In addition, there is a small memory leak fix when a persistent id was specifically passed to connect() (it wasn't beeing freed). Addresses issue #320 --- common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common.h') diff --git a/common.h b/common.h index 1b9e97f5..33d60ce6 100644 --- a/common.h +++ b/common.h @@ -157,6 +157,7 @@ typedef struct { php_stream *stream; char *host; short port; + char *auth; double timeout; double read_timeout; int failed; -- cgit v1.2.3