Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ebc4884

Browse files
committed
Add igbinary to the include path in windows
Before this commit, building 32-bit with igbinary enabled in Visual Studio 2015 failed, since igbinary/igbinary.h wasn't in the include path (VS2015 x86 Native Tools command prompt) Pecls were installed in a pecl folder adjacent to (same level as) php-7.0.9-src folder. ``` C:\php-sdk\bin\phpsdk_setvars.bat buildconf configure --disable-all --enable-cgi --enable-session --enable-igbinary --enable-redis-igbinary ```
1 parent 0e02799 commit ebc4884

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config.w32

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ if (PHP_REDIS != "no") {
1313
}
1414

1515
if (PHP_REDIS_IGBINARY != "no") {
16-
if (CHECK_HEADER_ADD_INCLUDE("igbinary.h", "CFLAGS_REDIS", configure_module_dirname + "\\..\\igbinary")) {
16+
// If igbinary/igbinary.h is found in the pecl dir,
17+
// then add the pecl dir to the list of directories to search for headers. (Makes #include "igbinary/igbinary.h" work)
18+
if (CHECK_HEADER_ADD_INCLUDE("igbinary/igbinary.h", "CFLAGS_REDIS", configure_module_dirname + "\\..")) {
1719

1820
ADD_EXTENSION_DEP("redis", "igbinary");
1921
AC_DEFINE("HAVE_REDIS_IGBINARY", 1);

0 commit comments

Comments
 (0)