Skip to content

Commit 6d14bf5

Browse files
Merge branch 'hotfix/win32-fixes'
2 parents b9a16b5 + fb10a14 commit 6d14bf5

13 files changed

+655
-664
lines changed

CREDITS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Redis client extension for PHP
2-
Alfonso Jimenez <yo@alfonsojimenez.com>
3-
Nasreddine Bouafif <n.bouafif@owlient.eu>
4-
Nicolas Favre-Felix <n.favre-felix@owlient.eu>
5-
Michael Grunder <michael.grunder@gmail.com>
2+
Alfonso Jimenez (yo@alfonsojimenez.com)
3+
Nasreddine Bouafif (n.bouafif@owlient.eu)
4+
Nicolas Favre-Felix (n.favre-felix@owlient.eu)
5+
Michael Grunder (michael.grunder@gmail.com)

config.h

Lines changed: 0 additions & 69 deletions
This file was deleted.

config.w32

Lines changed: 28 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,28 @@
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-
6-
if (PHP_REDIS != "no") {
7-
var sources = "redis.c library.c igbinary\\igbinary.c igbinary\\hash_si.c igbinary\\hash_function.c";
8-
if (PHP_REDIS_SESSION != "no") {
9-
AC_DEFINE('PHP_SESSION', 1);
10-
sources += " redis_session.c";
11-
}
12-
13-
AC_DEFINE("PHP_EXPORTS", 1);
14-
EXTENSION("redis", sources);
15-
}
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+
EXTENSION("redis", sources);
27+
}
28+

0 commit comments

Comments
 (0)