Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2012-08-09 03:09:57 +0400
committermichael-grunder <michael.grunder@gmail.com>2012-08-09 03:09:57 +0400
commit691786bc7f547836d849d4830c03411856779aab (patch)
treeb735d7650506d2aee4809cb80051fa4b2bffd7ea /library.c
parenta568029864166114e0ca45b69518a69d40501ecb (diff)
Properly apply a prefix on sort(), sortAsc(), and sortDesc() methods with an
included unit test to make sure it's working properly. This fixes issue #226
Diffstat (limited to 'library.c')
-rw-r--r--library.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/library.c b/library.c
index d3ec9ef8..39ef8ca9 100644
--- a/library.c
+++ b/library.c
@@ -1276,6 +1276,8 @@ redis_serialize(RedisSock *redis_sock, zval *z, char **val, int *val_len TSRMLS_
break;
}
+ int tvar = EG(precision);
+
/* return string */
convert_to_string(z_copy);
*val = Z_STRVAL_P(z_copy);