Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 54 lines (48 sloc) 3.85 kB
f4af354 re-organize code, init pipeline
Nasreddine Bouafif authored
1 void add_constant_long(zend_class_entry *ce, char *name, int value);
b9a1c75 @nicolasff Converted many functions to the new protocol.
nicolasff authored
2 int integer_length(int i);
f4af354 re-organize code, init pipeline
Nasreddine Bouafif authored
3 int redis_cmd_format(char **ret, char *format, ...);
5a4eb10 @nicolasff Fixed a large number of warnings when compiled with -Wall (thanks to …
nicolasff authored
4 int redis_cmd_format_static(char **ret, char *keyword, char *format, ...);
f4af354 re-organize code, init pipeline
Nasreddine Bouafif authored
5
6 PHPAPI char * redis_sock_read(RedisSock *redis_sock, int *buf_len TSRMLS_DC);
7
c67e2dd @nicolasff Re-added HMGET + doc & unit tests.
nicolasff authored
8 PHPAPI void redis_1_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
9 PHPAPI void redis_long_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval* z_tab, void *ctx);
39df0b7 @ehohenstein fixing issue with re-connect logic
ehohenstein authored
10 typedef void (*SuccessCallback)(RedisSock *redis_sock);
11 PHPAPI void redis_boolean_response_impl(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx, SuccessCallback success_callback);
c67e2dd @nicolasff Re-added HMGET + doc & unit tests.
nicolasff authored
12 PHPAPI void redis_boolean_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
13 PHPAPI void redis_bulk_double_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
14 PHPAPI void redis_string_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
7c24786 @nicolasff Merge branch 'master' into serializer
nicolasff authored
15 PHPAPI void redis_ping_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
c67e2dd @nicolasff Re-added HMGET + doc & unit tests.
nicolasff authored
16 PHPAPI void redis_info_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
17 PHPAPI void redis_type_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
265feef @nicolasff Merge branch 'master' of https://github.com/Zakay/phpredis into Zakay…
nicolasff authored
18 PHPAPI RedisSock* redis_sock_create(char *host, int host_len, unsigned short port, double timeout, int persistent, char *persistent_id);
f4af354 re-organize code, init pipeline
Nasreddine Bouafif authored
19 PHPAPI int redis_sock_connect(RedisSock *redis_sock TSRMLS_DC);
20 PHPAPI int redis_sock_server_open(RedisSock *redis_sock, int force_connect TSRMLS_DC);
21 PHPAPI int redis_sock_disconnect(RedisSock *redis_sock TSRMLS_DC);
6edae7c @nicolasff Fixed ZTS problems.
nicolasff authored
22 PHPAPI zval *redis_sock_read_multibulk_reply_zval(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock);
bb1bfd2 @Savar fix some missing threaded parameters and added README info
Savar authored
23 PHPAPI char *redis_sock_read_bulk_reply(RedisSock *redis_sock, int bytes TSRMLS_DC);
c67e2dd @nicolasff Re-added HMGET + doc & unit tests.
nicolasff authored
24 PHPAPI int redis_sock_read_multibulk_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *_z_tab, void *ctx);
fd03564 @nicolasff Fix prefix problems with hashes, add more tests.
nicolasff authored
25 PHPAPI int redis_sock_read_multibulk_reply_raw(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
27fc7c7 @nicolasff Bugfix for hgetall used with serializer.
nicolasff authored
26 PHPAPI int redis_sock_read_multibulk_reply_loop(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, int numElems, int unwrap_key, int unserialize_even_only);
c67e2dd @nicolasff Re-added HMGET + doc & unit tests.
nicolasff authored
27 PHPAPI int redis_sock_read_multibulk_reply_zipped(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
28 PHPAPI int redis_sock_read_multibulk_reply_zipped_strings(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
29 PHPAPI int redis_sock_read_multibulk_reply_assoc(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
bb1bfd2 @Savar fix some missing threaded parameters and added README info
Savar authored
30 PHPAPI int redis_sock_write(RedisSock *redis_sock, char *cmd, size_t sz TSRMLS_DC);
1929e9b @Savar refactore stream closing
Savar authored
31 PHPAPI void redis_stream_close(RedisSock *redis_sock TSRMLS_DC);
90366e8 @nicolasff Throw exception when the connection fails repeatedly.
nicolasff authored
32 PHPAPI int redis_check_eof(RedisSock *redis_sock TSRMLS_DC);
f4af354 re-organize code, init pipeline
Nasreddine Bouafif authored
33 //PHPAPI int redis_sock_get(zval *id, RedisSock **redis_sock TSRMLS_DC);
34 PHPAPI void redis_free_socket(RedisSock *redis_sock);
a5e53f1 @nicolasff Fixed compilation issues with Clang.
nicolasff authored
35 PHPAPI void redis_send_discard(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock);
b2afc58 @nicolasff First work on serializer.
nicolasff authored
36
37 PHPAPI int
6f6c4ff @nicolasff Fixed ZTS macros.
nicolasff authored
38 redis_serialize(RedisSock *redis_sock, zval *z, char **val, int *val_len TSRMLS_DC);
2e7e610 @nicolasff Added key prefix.
nicolasff authored
39 PHPAPI int
6f6c4ff @nicolasff Fixed ZTS macros.
nicolasff authored
40 redis_key_prefix(RedisSock *redis_sock, char **key, int *key_len TSRMLS_DC);
b2afc58 @nicolasff First work on serializer.
nicolasff authored
41
3d0bb74 @nicolasff Serializing option for HGET/HSET/HGETALL.
nicolasff authored
42 PHPAPI int
6f6c4ff @nicolasff Fixed ZTS macros.
nicolasff authored
43 redis_unserialize(RedisSock *redis_sock, const char *val, int val_len, zval **return_value TSRMLS_DC);
a5e53f1 @nicolasff Fixed compilation issues with Clang.
nicolasff authored
44
72a041c @maxbeutel use helper for converting from double to string, use _ex version of _…
maxbeutel authored
45 #if (PHP_MAJOR_VERSION == 5) && (PHP_MINOR_VERSION >= 4)
46 # define REDIS_DOUBLE_TO_STRING(dbl_str, dbl_len, dbl) \
47 dbl_str = _php_math_number_format_ex(dbl, 8, (char*)'.', 0, NULL, 0); \
48 dbl_len = strlen(dbl_str);
49 #else
50 # define REDIS_DOUBLE_TO_STRING(dbl_str, dbl_len, dbl) \
51 dbl_str = _php_math_number_format(dbl, 8, '.', '\x00'); \
52 dbl_len = strlen(dbl_str);
53 #endif
Something went wrong with that request. Please try again.