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

Skip to content

Support PHP_REDIS_IGBINARY (Windows) #68

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

Closed
wants to merge 1 commit into from

Conversation

Jan-E
Copy link

@Jan-E Jan-E commented Aug 6, 2016

Copy the headers to the root dir of the extension, where the redis extension tries to find them.
With this patch the compile command for php_redis.dll will be:

"cl.exe" /D PHP_SESSION=1 /I "ext\redis..\igbinary" /DHAVE_IGBINARY_H=1 et cetera

Copy the headers to the root dir of the extension, where the redis extension tries to find them
@TysonAndre
Copy link
Member

TysonAndre commented Aug 7, 2016

Oh. I forgot about redis.

Linux builds (config.m4) would still be broken (EDIT: oh, you mentioned that it was windows only). I also don't see a clear reason for data structures and macros and bool to be exposed.

EDIT: Also, you assume that igbinary has phpconfig called before redis is built... Not familiar enough with windows to know if that's always the case.

The most convenient way would be to create a fake igbinary/igbinary.h , which exposes the "public" APIs of igbinary (igbinary_serialize and igbinary_unserialize (unserializing to a zval* in php7 or zval** in php5)), so that extensions continued to work

#if PHP_MAJOR_VERSION == 5
#include "igbinary/src/php5/igbinary_api.h"
#elsif PHP_MAJOR_VERSION == 7
#include "igbinary/src/php7/igbinary_api.h"
#else
#error "Unsupported php version"
#endif

@TysonAndre
Copy link
Member

Anyway, I have time to do that.

@TysonAndre
Copy link
Member

The redis build issues should be fixed in #69 , open an issue with output of php-config, flags passed to configure, and configure and make output (or cl.exe) for redis and igbinary if the problem continues

phpredis/phpredis#917

@TysonAndre TysonAndre closed this Aug 7, 2016
@Jan-E Jan-E deleted the redis-igbinary-support branch August 7, 2016 20:57
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