Commit Graph

818 Commits

Author SHA1 Message Date
michael-grunder
4c24dfa5c5 Merge branch 'hotfix/double_precision' double_precision 2013-08-31 14:12:36 -07:00
michael-grunder
535ff5d13f Actually set the precision to 16 places!
Addresses #371
2013-08-15 10:54:41 -07:00
michael-grunder
daef4b73a0 Increase double->string precision
When calling php library methods to convert doubles to strings
we were only keeping 8 digits after the decimal point.  For
double precision numbers, 15 are stable.

Redis uses the C library function strtod() to do the conversion,
which appears to use the first 16 digits for aproximation:
http://www.exploringbinary.com/how-strtod-works-and-sometimes-doesnt/

This hotfix increases the signifigant digits to 16, which I think
is the correct number to pick here.

Addresses issue #371
2013-08-15 10:47:03 -07:00
michael-grunder
cdd437ec59 Merge branch 'hotfix/ra_mget_segfault' ra_mget_segfault 2013-08-06 14:19:23 -07:00
michael-grunder
641841012f Make sure RedisArray::mget returns an array
Add a check in mget to make sure that the forwarded call is
returning with an array, and not NULL or something else.

Addresses issue #350
2013-08-06 14:17:54 -07:00
michael-grunder
1a8b049d4f Merge branch 'hotfix/ttl_return' ttl_return 2013-07-31 14:58:01 -07:00
michael-grunder
1b624141c0 Update documentation and unit tests for TTL/PTTL
Addresses #358
2013-07-31 14:57:26 -07:00
michael-grunder
de139e83de Merge branch 'hotfix/echo_alias' echo_alias 2013-06-24 11:57:28 -07:00
michael-grunder
e47e18c4b2 Create an alias for echo, called sendEcho
Addresses #345
2013-06-24 11:56:38 -07:00
michael-grunder
2d0f29bdaf Merge branch 'hotfix/zcmd_inf_weights' zcmd_inf_weights 2013-05-09 11:57:42 -07:00
michael-grunder
75ddd072a4 Add unit tests for -inf/inf/+inf WEIGHTS
Addresses issue #336
2013-05-09 11:55:43 -07:00
michael-grunder
e9d5e21980 Support for '-inf', 'inf', and '+inf' for WEIGHTS
Redis allows the use of these specialized numbers in the
WEIGHTS argument for things like ZUNIONSTORE AND ZINTERSTORE
2013-05-09 11:03:43 -07:00
Nicolas Favre-Felix
da0cd3f655 Merge branch 'hotfix/array-flush-commands' 2013-05-02 19:59:53 +01:00
Nicolas Favre-Felix
f9ef6efc7f Add FLUSHALL to RedisArray
GitHub issue #334
2013-05-02 19:59:27 +01:00
Nicolas Favre-Felix
5660e10c62 Add FLUSHDB to RedisArray
GitHub issue #334
2013-05-02 19:57:49 +01:00
Nicolas Favre-Felix
942fa840be Add PECL package.xml 2013-04-29 21:42:42 +01:00
michael-grunder
f9b248b87c Merge branch 'hotfix/comment_error' comment_error 2013-04-28 11:39:48 -07:00
michael-grunder
4080dd9d0b Fix comment format 2013-04-28 11:39:34 -07:00
michael-grunder
b4976b6684 Merge branch 'master' of github.com:nicolasff/phpredis 2013-04-28 11:11:22 -07:00
michael-grunder
f9f2dc0dbf Merge branch 'release/2.2.3' 2.2.3 2013-04-28 11:10:32 -07:00
michael-grunder
3e6d5b60d6 Cutting a release for 2.2.3. Added myself as a maintainer
in the header files
2013-04-28 11:09:58 -07:00
Yuki Matsukura
5d1b3a4ddb Update README.markdown
- correct minor example mistake.
2013-04-27 22:06:41 +01:00
Nicolas Favre-Felix
d775e313c2 Merge pull request #331 from matsubo/master
Correct wrong example in the README
2013-04-27 14:04:43 -07:00
Yuki Matsukura
f858f615a7 Update README.markdown
- correct minor example mistake.
2013-04-28 05:16:01 +09:00
michael-grunder
578bdf08cd Merge branch 'hotfix/tsrmls_cc' into develop 2013-03-28 07:58:47 -07:00
michael-grunder
4c16a303ef Merge branch 'hotfix/tsrmls_cc' tsrmls_cc 2013-03-28 07:58:40 -07:00
michael-grunder
411100da9e Don't duplicate TSRMLS_CC 2013-03-28 07:56:54 -07:00
michael-grunder
e914485313 Merge branch 'hotfix/inspection_methods' into develop
Conflicts:
	php_redis.h
	redis.c
2013-03-27 11:21:02 -07:00
michael-grunder
7c52f3add1 Merge branch 'hotfix/inspection_methods' inspection_methods 2013-03-27 10:24:31 -07:00
michael-grunder
ef792320e7 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
2013-03-27 10:21:18 -07:00
michael-grunder
11a1195d8e Merge branch 'hotfix/php5.2_warnings' into develop 2013-03-20 09:08:56 -07:00
michael-grunder
b2ffb7ac75 Merge branch 'hotfix/php5.2_warnings' php5.2_warnings 2013-03-20 09:08:36 -07:00
michael-grunder
8596eac45e Use another NULL for zend_is_callable_ex
Given that PHP 5.2.X and PHP 5.3.X use a different signature
for zend_is_callable_ex, and we're not using the error return
(PHP 5.3.X) anyway, just pass in NULL.

Addresses issue #318
2013-03-20 09:00:57 -07:00
michael-grunder
25a1593d73 Merge branch 'develop' of github.com:nicolasff/phpredis into develop 2013-03-16 11:55:09 -07:00
michael-grunder
22ebd714bc Merge branch 'hotfix/eval_alias' into develop 2013-03-16 11:54:07 -07:00
michael-grunder
d287163de2 Merge branch 'hotfix/eval_alias' eval_alias 2013-03-16 11:53:55 -07:00
michael-grunder
c39ecd52f3 Alias eval and evalsha 2013-03-16 11:48:51 -07:00
michael-grunder
b2a57c1f9f Merge branch 'hotfix/serializer_leak' into develop 2013-03-16 11:40:36 -07:00
michael-grunder
f3a3fcef75 Merge branch 'hotfix/serializer_leak' 2013-03-15 16:35:18 -07:00
michael-grunder
a4627bb94b Fixes a memory leak, and possible undefined behavior if we have
a serialization failure and just return the raw contents of a key.

Addresses issue #315
2013-03-15 16:34:05 -07:00
michael-grunder
4fd6acda89 Merge branch 'feature/client_doc_fmt' into develop 2013-02-25 14:12:48 -08:00
michael-grunder
7deb21fe2d More formatting 2013-02-25 14:12:20 -08:00
michael-grunder
b096f5771b Formatting fix 2013-02-25 14:10:53 -08:00
michael-grunder
5582166f77 Fix documentation for CLIENT command
Relates to issue #300
2013-02-25 14:08:07 -08:00
michael-grunder
d6c29e4348 Merge branch 'hotfix/fix_return_values' into develop 2013-02-24 17:52:56 -08:00
michael-grunder
5e5fa7895f Merge branch 'hotfix/fix_return_values' 2013-02-24 17:52:39 -08:00
michael-grunder
703476ce01 Fix each place we're erroring out but return a value as the
methods are int returns

Resolves issues pertaining to #303
2013-02-24 17:51:56 -08:00
michael-grunder
0816289454 Merge branch 'hotfix/add_retval_zipped_wreply' into develop 2013-02-24 16:47:57 -08:00
michael-grunder
117cc22d75 Merge branch 'hotfix/add_retval_zipped_wreply' 2013-02-24 16:47:40 -08:00
michael-grunder
9954974778 Return a proper value
redis_sock_read_multibulk_reply_zipped_with_flag should always return
a value.  We merged in a change that handled a certain error condition
that was using RETURN_FALSE (and therefore not returning a value)

Simply changed this to RETVAL_FALSE and return -1;
2013-02-24 16:45:11 -08:00