update install-phpredis.sh

This commit is contained in:
Guobao Jiang 2014-03-06 21:17:13 +08:00
parent d4e7427ad0
commit 49c2426468
2 changed files with 13 additions and 3 deletions

View File

@ -14,3 +14,13 @@ make install
## then add two lines in php5/etc/php.in
# extension=redis.so
# extension_dir = "/home/aborn/php5/lib/php/extensions/no-debug-non-zts-20121212"
## if occurs
## Fatal error: Class 'redis' not found
## please use follow in php code
if (!extension_loaded('redis')) {
##echo "no load!";
if (!dl('redis.so')) {
exit;
}
}