Fixed compiling on custom paths, SEARCH_FOR was not defined
Persistent connections were allocated with emalloc, which gets freed at the end of the request. ZEND_FETCH_RESOURCE2 was using redisContext * for type