Skip to content

Commit 4d25337

Browse files
committed
Merge remote-tracking branch 'vostok4/master'
Conflicts: CREDITS README.markdown config.w32 library.c library.h package.xml redis.c redis_array.c redis_array.h redis_array_impl.c redis_array_impl.h tests/TestRedis.php
2 parents 4813809 + 566d673 commit 4d25337

12 files changed

+673
-589
lines changed

CREDITS

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
Redis client extension for PHP
2-
Alfonso Jimenez, Nasreddine Bouafif, Nicolas Favre-Felix, Michael Grunder
2+
Alfonso Jimenez ([email protected])
3+
Nasreddine Bouafif ([email protected])
4+
Nicolas Favre-Felix ([email protected])
5+
Michael Grunder ([email protected])

config.w32

+34-31
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
1-
// vim: ft=javascript:
2-
3-
ARG_ENABLE("redis", "whether to enable redis support", "yes");
4-
ARG_ENABLE("redis-session", "whether to enable sessions", "yes");
5-
ARG_ENABLE("redis-igbinary", "whether to enable igbinary serializer support", "no");
6-
7-
if (PHP_REDIS != "no") {
8-
EXTENSION("redis", "redis.c library.c redis_array_impl.c redis_array.c");
9-
AC_DEFINE("HAVE_REDIS", 1);
10-
ADD_FLAG("CFLAGS_REDIS", ' /D PHP_EXPORTS=1 ');
11-
12-
if (PHP_REDIS_SESSION != "no") {
13-
ADD_SOURCES(configure_module_dirname, "redis_session.c", "redis");
14-
ADD_EXTENSION_DEP("redis", "session");
15-
ADD_FLAG("CFLAGS_REDIS", ' /D PHP_SESSION=1 ');
16-
AC_DEFINE("HAVE_REDIS_SESSION", 1);
17-
}
18-
19-
if (PHP_REDIS_IGBINARY != "no") {
20-
if (CHECK_HEADER_ADD_INCLUDE("igbinary.h", "CFLAGS_REDIS", configure_module_dirname + "\\..\\igbinary")) {
21-
22-
ADD_EXTENSION_DEP("redis", "igbinary");
23-
AC_DEFINE("HAVE_REDIS_IGBINARY", 1);
24-
} else {
25-
WARNING("redis igbinary support not enabled");
26-
}
27-
}
28-
29-
30-
}
31-
1+
// vim: ft=javascript:
2+
3+
ARG_ENABLE("redis", "whether to enable redis support", "yes");
4+
ARG_ENABLE("redis-session", "whether to enable sessions", "yes");
5+
ARG_ENABLE("redis-igbinary", "whether to enable igbinary serializer support", "no");
6+
7+
if (PHP_REDIS != "no") {
8+
var sources = "redis.c library.c redis_array.c redis_array_impl.c";
9+
if (PHP_REDIS_SESSION != "no") {
10+
ADD_SOURCES(configure_module_dirname, "redis_session.c", "redis");
11+
ADD_EXTENSION_DEP("redis", "session");
12+
ADD_FLAG("CFLAGS_REDIS", ' /D PHP_SESSION=1 ');
13+
AC_DEFINE("HAVE_REDIS_SESSION", 1);
14+
}
15+
16+
if (PHP_REDIS_IGBINARY != "no") {
17+
if (CHECK_HEADER_ADD_INCLUDE("igbinary.h", "CFLAGS_REDIS", configure_module_dirname + "\\..\\igbinary")) {
18+
19+
ADD_EXTENSION_DEP("redis", "igbinary");
20+
AC_DEFINE("HAVE_REDIS_IGBINARY", 1);
21+
} else {
22+
WARNING("redis igbinary support not enabled");
23+
}
24+
}
25+
26+
if (PHP_REDIS_IGBINARY != "no") {
27+
CHECK_HEADER_ADD_INCLUDE("igbinary.h", "CFLAGS_REDIS", "ext\\igbinary");
28+
AC_DEFINE('HAVE_REDIS_IGBINARY', 1);
29+
ADD_EXTENSION_DEP('redis', 'igbinary');
30+
}
31+
32+
EXTENSION("redis", sources);
33+
}
34+

0 commit comments

Comments
 (0)