My favorites | Sign in
Logo
          
Search
for
Updated Apr 10, 2009 by th3j0ker
referencemethods  

Reference Methods

Connection handling

Commands operating on string values

Commands operating on the key space

Commands operating on list objects

Commands operating on set objects

Sorting


Comment by clifton.tony, May 18, 2009

Redis::incr() method behaves strange when increment value is not given. It sets random value for key.

Comment by wilson.nick, May 29, 2009

your method naming convention is a bit wonky, prefixing l for list commands, then listTrim ? Otherwise, thanks for the lib =]

Comment by th3j0ker, May 31, 2009

Wilson, I couldn't call it ltrim because a ltrim function already comes included in the PHP core (http://es.php.net/ltrim). Anyway, if you have a look at the disclaimer, the method names may change in the future.

Alfonso

Comment by saggar.sahil, Sep 11, 2009

I tried to compile this for Centos but failed. I am not much comfortable with linux so I am still not able to figure out what was the problem. Following is text which I get on command 'make && make install'

/bin/sh /var/redis/phpredis/libtool --mode=compile gcc -I. -I/var/redis/phpredis -DPHP_ATOM_INC -I/var/redis/phpredis/include -I/var/redis/phpredis/main -I/var/redis/phpredis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /var/redis/phpredis/redis.c -o redis.lo

gcc -I. -I/var/redis/phpredis -DPHP_ATOM_INC -I/var/redis/phpredis/include -I/var/redis/phpredis/main -I/var/redis/phpredis -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -DHAVE_CONFIG_H -g -O2 -c /var/redis/phpredis/redis.c -fPIC -DPIC -o .libs/redis.o
In file included from /var/redis/phpredis/redis.c:26: /var/redis/phpredis/php_redis.h:93: redefinition of `tsrm_ls' /var/redis/phpredis/php_redis.h:93: `tsrm_ls' previously declared here /var/redis/phpredis/redis.c: In function `redis_sock_read': /var/redis/phpredis/redis.c:234: warning: function returns address of local variable /var/redis/phpredis/redis.c: In function `redis_sock_read_bulk_reply': /var/redis/phpredis/redis.c:257: warning: function returns address of local variable /var/redis/phpredis/php_redis.h:93: prior parameter's size depends on `tsrm_ls' /var/redis/phpredis/redis.c: At top level: /var/redis/phpredis/redis.c:264: redefinition of `tsrm_ls' /var/redis/phpredis/redis.c:263: `tsrm_ls' previously declared here /var/redis/phpredis/redis.c: In function `redis_sock_read_multibulk_reply': /var/redis/phpredis/redis.c:263: redeclaration of `tsrm_ls' /var/redis/phpredis/redis.c:264: `tsrm_ls' previously declared here /var/redis/phpredis/redis.c:291: too few arguments to function `redis_sock_read' /var/redis/phpredis/redis.c: In function `redis_sock_write': /var/redis/phpredis/php_redis.h:93: prior parameter's size depends on `tsrm_ls' /var/redis/phpredis/redis.c: In function `redis_get_exception_base': /var/redis/phpredis/redis.c:359: warning: return makes pointer from integer without a cast make: redis.lo? Error 1

Please help me out on this so that I can use Redis

Comment by fjctlzy, Sep 18, 2009

it seems the author doesn't work on this project

Comment by klimpong, Oct 31, 2009

This code should be in pecl, so others can take over when the project is unmaintained.

Comment by wil...@foxmail.com, Nov 06, 2009

checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk ./configure: line 3371: syntax error near unexpected token `newline' ./configure: line 3371: `<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">'

Comment by wil...@foxmail.com, Nov 06, 2009

php5.3 + centos5.2

Linux srv 2.6.18-92.1.18.el5.028stab060.2PAE #1 SMP Tue Jan 13 12:31:30 MSK 2009 i686 i686 i386 GNU/Linux

Comment by leniule, Nov 10, 2009

hi, my re2c is re2c 0.13.5, got the same problem?

need higher gcc or not ?

Comment by G.airwin, Nov 25, 2009

can not load together with tokyocabinet.so ?


Sign in to add a comment
Hosted by Google Code