as the result of a bug Albert Lombarte was experimenting with Redis
PHP (the replies were truncated) we found that the PHP client was not
playing well with PHP5 code for some reason. In order to fix the issue
I ported the original PHP lib to PHP5, removed references, and finally
rewrote a bit the code to read the reply in order to make it more
general about strange replies that we may use in the future (for
example nested multi bulk replies and so on). Moreover now the code
uses a different set of functions to read bulk data that should be
much faster (fread instead of gets). The new lib was not tested
extensively but it's passing the old tests without problems.
You can find the result inside the Redis-git. Note that some method
changed name to be more similar to the protocol itself: most of the
time I added aliases to avoid breaking code already using this lib,
but for "flush" that is now called "flushdb" without any aliasing.
Cheers,
Salvatore
--
Salvatore 'antirez' Sanfilippo
http://invece.org
Thank you Albert,
just a question: is it common to override strlen() and other string
related functions? I'm not sure if I should add or not the change in
the global repo.