Skip to content

Commit 0f1f5f4

Browse files
Merge branch 'hotfix/win32-fixes' into develop
Conflicts: redis.c
2 parents 582abd8 + fb10a14 commit 0f1f5f4

13 files changed

+656
-665
lines changed

CREDITS

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

config.h

-69
This file was deleted.

config.w32

+28-15
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)