Skip to content

Conversation

mahdi-hdi
Copy link

I merged master to current branch and resolved conflicts to keep it updated. Moreover, support geo functionalities.

michael-grunder and others added 30 commits February 11, 2016 21:21
* Modified RedisArray to support IPv6
* Updated general test suite to take an override host
* Updated make-cluster.sh to take an override host
yatsukhnenko and others added 30 commits July 31, 2016 00:10
replace emalloc+memcpy with estrndup
Partial fix for phpredis#836 + additional checking params
charry-picked from 5778f03
Document raw command
Before this commit, building 32-bit with igbinary enabled in
Visual Studio 2015 failed,
since igbinary/igbinary.h wasn't in the include path
(VS2015 x86 Native Tools command prompt)

Pecls were installed in a pecl folder adjacent to (same level as)
php-7.0.9-src folder.

```
C:\php-sdk\bin\phpsdk_setvars.bat
buildconf
configure --disable-all --enable-cgi --enable-session --enable-igbinary --enable-redis-igbinary
```
The fixes are limited to what are covered by tests/TestRedis.php

Command used to detect memory leaks (Anything mentioning redis):

```bash
USE_ZEND_ALLOC=0 ZEND_DONT_UNLOAD_MODULES=1 valgrind --leak-check=full \
    php --php-ini php.ini tests/TestRedis.php
```

- USE_ZEND_ALLOC uses malloc/free/etc instead of Zend's custom allocator
- ZEND_DONT_UNLOAD_MODULES allows valgrind to print the file and line
  numbers for a shared library (this extension)
- about valgrind: http://valgrind.org/docs/manual/quick-start.html

While the allocated memory would be cleaned up after the end of a request,
memory leaks might cause problems for long-running CLI scripts dealing
with hundreds of thousands of keys.
Cherry-picked from 670146b

Conflicts:
	library.c
Reorder inclusion of common.h in redis_session.c.
Fix a couple of unused variable warnings

Potential fix for phpredis#929
If zval_(ptr_)dtor wasn't called on the converted values later,
it would be a memory leak (lasting only until the request was over).

Follow up to phpredis#918
…de-path-in-windows

php7 - Properly add igbinary to the include path in windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.