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

Skip to content

php7 - Properly add igbinary to the include path in windows #917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2016
Merged

php7 - Properly add igbinary to the include path in windows #917

merged 1 commit into from
Nov 8, 2016

Conversation

TysonAndre
Copy link
Contributor

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)

CHECK_HEADER_ADD_INCLUDE would add pecl/phpredis/../igbinary to the include path. Then, it would search for pecl/phpredis/../igbinary/igbinary/igbinary.h (etc), which didn't exist when I built it. (pecl/phpredis/../igbinary/igbinary.h does)

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

The commit in this PR can be cherry-picked to develop as well, since the config.w32 has the same bug.

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
```
@TysonAndre
Copy link
Contributor Author

@yatsukhnenko

@yatsukhnenko yatsukhnenko merged commit 8a0ecbc into phpredis:php7 Nov 8, 2016
@yatsukhnenko
Copy link
Member

@TysonAndre, do you know any service like Travis CI for Windows?

@TysonAndre
Copy link
Contributor Author

@yatsukhnenko https://www.appveyor.com/ , though I haven't used it in any of my own projects

Free for open-source projects. Plans start from $29/month.

https://github.com/phalcon/zephir/blob/master/appveyor.yml is an example of a project using Appveyor

@TysonAndre
Copy link
Contributor Author

https://github.com/igbinary/igbinary/blob/master/WINDOWS.md also mentions how to build with Windows in a VM locally (Haven't done that in over a month, but should still be current)

@TysonAndre TysonAndre deleted the add-igbinary-to-include-path-in-windows branch November 8, 2016 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants