Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 75 lines (64 sloc) 4.929 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, ...);
9c9c63f @michael-grunder Initial commit of EVAL and EVALSHA
michael-grunder authored
5 int redis_cmd_format_header(char **ret, char *keyword, int arg_count);
6 int redis_cmd_append_str(char **cmd, int cmd_len, char *append, int append_len);
e1a5145 @michael-grunder Changed the way we build the HMSET command such that we don't
michael-grunder authored
7 int redis_cmd_append_sstr(smart_str *str, char *append, int append_len);
9c9c63f @michael-grunder Initial commit of EVAL and EVALSHA
michael-grunder authored
8 int redis_cmd_append_int(char **cmd, int cmd_len, int append);
9
f4af354 re-organize code, init pipeline
Nasreddine Bouafif authored
10
11 PHPAPI char * redis_sock_read(RedisSock *redis_sock, int *buf_len TSRMLS_DC);
12
c67e2dd @nicolasff Re-added HMGET + doc & unit tests.
nicolasff authored
13 PHPAPI void redis_1_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
14 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
15 typedef void (*SuccessCallback)(RedisSock *redis_sock);
16 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
17 PHPAPI void redis_boolean_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
18 PHPAPI void redis_bulk_double_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
19 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
20 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
21 PHPAPI void redis_info_response(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
22 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
23 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
24 PHPAPI int redis_sock_connect(RedisSock *redis_sock TSRMLS_DC);
25 PHPAPI int redis_sock_server_open(RedisSock *redis_sock, int force_connect TSRMLS_DC);
26 PHPAPI int redis_sock_disconnect(RedisSock *redis_sock TSRMLS_DC);
6edae7c @nicolasff Fixed ZTS problems.
nicolasff authored
27 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
28 PHPAPI char *redis_sock_read_bulk_reply(RedisSock *redis_sock, int bytes TSRMLS_DC);
c67e2dd @nicolasff Re-added HMGET + doc & unit tests.
nicolasff authored
29 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
30 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
31 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
32 PHPAPI int redis_sock_read_multibulk_reply_zipped(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
33 PHPAPI int redis_sock_read_multibulk_reply_zipped_strings(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab, void *ctx);
34 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
35 PHPAPI int redis_sock_write(RedisSock *redis_sock, char *cmd, size_t sz TSRMLS_DC);
1929e9b @Savar refactore stream closing
Savar authored
36 PHPAPI void redis_stream_close(RedisSock *redis_sock TSRMLS_DC);
90366e8 @nicolasff Throw exception when the connection fails repeatedly.
nicolasff authored
37 PHPAPI int redis_check_eof(RedisSock *redis_sock TSRMLS_DC);
f4af354 re-organize code, init pipeline
Nasreddine Bouafif authored
38 //PHPAPI int redis_sock_get(zval *id, RedisSock **redis_sock TSRMLS_DC);
39 PHPAPI void redis_free_socket(RedisSock *redis_sock);
a5e53f1 @nicolasff Fixed compilation issues with Clang.
nicolasff authored
40 PHPAPI void redis_send_discard(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock);
048e4b2 @michael-grunder getLastError method
michael-grunder authored
41 PHPAPI int redis_sock_set_err(RedisSock *redis_sock, const char *msg, int msg_len);
b2afc58 @nicolasff First work on serializer.
nicolasff authored
42
43 PHPAPI int
6f6c4ff @nicolasff Fixed ZTS macros.
nicolasff authored
44 redis_serialize(RedisSock *redis_sock, zval *z, char **val, int *val_len TSRMLS_DC);
2e7e610 @nicolasff Added key prefix.
nicolasff authored
45 PHPAPI int
6f6c4ff @nicolasff Fixed ZTS macros.
nicolasff authored
46 redis_key_prefix(RedisSock *redis_sock, char **key, int *key_len TSRMLS_DC);
b2afc58 @nicolasff First work on serializer.
nicolasff authored
47
3d0bb74 @nicolasff Serializing option for HGET/HSET/HGETALL.
nicolasff authored
48 PHPAPI int
6f6c4ff @nicolasff Fixed ZTS macros.
nicolasff authored
49 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
50
9c9c63f @michael-grunder Initial commit of EVAL and EVALSHA
michael-grunder authored
51
d4c2c1c @michael-grunder Add back nuked comment lines
michael-grunder authored
52 /*
53 * Variant Read methods, mostly to implement eval
54 */
55
8b1a64b @michael-grunder TSRMLS_CC
michael-grunder authored
56 PHPAPI int redis_read_reply_type(RedisSock *redis_sock, REDIS_REPLY_TYPE *reply_type, int *reply_info TSRMLS_DC);
57 PHPAPI int redis_read_variant_line(RedisSock *redis_sock, REDIS_REPLY_TYPE reply_type, zval **z_ret TSRMLS_DC);
58 PHPAPI int redis_read_variant_bulk(RedisSock *redis_sock, int size, zval **z_ret TSRMLS_DC);
59 PHPAPI int redis_read_multibulk_recursive(RedisSock *redis_sock, int elements, zval **z_ret TSRMLS_DC);
9c9c63f @michael-grunder Initial commit of EVAL and EVALSHA
michael-grunder authored
60 PHPAPI int redis_read_variant_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab);
83f3440 @michael-grunder PHP 5.4 number encode fix
michael-grunder authored
61
9a5196e @michael-grunder CLIENT Commands
michael-grunder authored
62 PHPAPI void redis_client_list_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock, zval *z_tab);
83f3440 @michael-grunder PHP 5.4 number encode fix
michael-grunder authored
63
c12a873 @maxbeutel Use module API version instead of PHP_MAJOR/MINOR version. Fix char a…
maxbeutel authored
64 #if ZEND_MODULE_API_NO >= 20100000
65 #define REDIS_DOUBLE_TO_STRING(dbl_str, dbl_len, dbl) \
66 char dbl_decsep; \
67 dbl_decsep = '.'; \
68 dbl_str = _php_math_number_format_ex(dbl, 8, &dbl_decsep, 1, NULL, 0); \
72a041c @maxbeutel use helper for converting from double to string, use _ex version of _…
maxbeutel authored
69 dbl_len = strlen(dbl_str);
70 #else
c12a873 @maxbeutel Use module API version instead of PHP_MAJOR/MINOR version. Fix char a…
maxbeutel authored
71 #define REDIS_DOUBLE_TO_STRING(dbl_str, dbl_len, dbl) \
72a041c @maxbeutel use helper for converting from double to string, use _ex version of _…
maxbeutel authored
72 dbl_str = _php_math_number_format(dbl, 8, '.', '\x00'); \
73 dbl_len = strlen(dbl_str);
d4c2c1c @michael-grunder Add back nuked comment lines
michael-grunder authored
74 #endif
Something went wrong with that request. Please try again.