-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Is there a "php_reds.dll" for php-5.4.4 on windows ? #213
Comments
maybe the 'php_redis.dll' for php5.4 is not coming. |
i want to know when it is coming ? |
There isn't an official windows build, but I think @char101 has built a few. He may be able to get one for 5.4.4 working :) |
@char101 Great, thanks a lot! |
@char101, the windows download links in this thread no longer work. Can the windows php extensions be found anywhere else? Or is there a way I can build them myself? Thanks. |
How to compile phpredis
For more information check https://wiki.php.net/internals/windows/stepbystepbuild |
That's a fantastic explanation as always @char101. @nicolasff, What do you think about adding this to the general phpredis documentation? I'm not sure how many users are running in a Windows environment, but it does come up every so often. |
@michael-grunder totally agree, this is a great tutorial. I'll add it to the README. |
It would be nice, if there would be a list of changes made, to get this project to compile on Windows. d:\php-src\ext\phpredis\php_redis.h(192) : error C2016: C requires that a struct or union has at least one member Code on the line looks like the following: ZEND_BEGIN_MODULE_GLOBALS(redis) struct redis_queued_item {
}; I have done quite a few changes to a file, for example config.w32 was not correct, then the library.c did not incluce windows specific headers. |
@char101 Hi. I |
Dll's and instructions here: |
can you try compiling it for version 5.5 |
I user ZendServer and the PHP Version is 5.3.9-ZS5.6.0,I download http://char101.github.io/phpredis/ 5.3 and 5.4,all are fail,who knows why? I do not want use the visual studio to make it myself; |
@char101, update pls link to download php_igbinary-5.3-vs9-ts-c35d48.dll on your site. Thx! |
I'd be very interested in a 5.5 version also. |
I will compile it when phpredis source can be compiled with the visual studio compiler. I currently have no motivation in fixing the source to compile with the VS compiler since I do not run php on windows anymore. |
there is an official download mirror for php windows pecl builds, but i can't find phpredis there: http://windows.php.net/downloads/pecl/releases maybe the authors of this github project can ask pierre or someone else from the php team to upload the current versions there from time to time. i don't think there is need for everyone to build them by oneself, that's what generic dlls are for: sharing across windows systems the ones provided by char101 seem outdated and seem to not work with 5.5 and the current 5.6-alpha |
@hajo-p check the snaps folder it should be there |
you are right, thanks alot. i've just looked for releases :) http://windows.php.net/downloads/pecl/snaps/redis update: igbinary is not bundled, but required and can be obtained there, too http://windows.php.net/downloads/pecl/releases/igbinary 2nd update: igbinary from there is not working due to a missing serialize entry, seems the one provided by char101 is still required to make it work |
Is it possible to get this to work with PHP 5.5 without Visual Studio (FOR FREE)? Windows 8 Pro 32-bit |
have you read my comment above yours? you need the redis extension from windows.php.net and the igbinary from there or char101. i can confirm that it works with the later igbinary dll on php 5.4. you could try it with both igbinary sources for php 5.5, maybe one of them works for you, too. |
The webpage http://char101.github.io/phpredis/ is great, the libraries work. Thank you! |
Strange,
Same goes for GD with
|
@guysoft Did you try that with Vostok's sources? I used those sources with this one as latest commit: It compiles fine in all 16 flavours of PHP, I regularly build. PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6 (beta1), all TS or NTS, all x86 or x64. Kudos to @vostok4 ! |
Can somebody check if SERIALIZER_IGBINARY works in the php_redis.dll's in my latest PHP 5.5 builds: |
This brings the W32 compilation fixes done by @char101 up to date and allows building of php_redis.dll with VC11 on Win32 (allows for a php5.5 version).
The v5.5 download from http://windows.php.net/downloads/pecl/snaps/redis/2.2.5/ worked fine for me without the igbinary dependency. It appears that igbinary is no longer required. |
@rstarkov Sorry if Im asking a silly question, Im new to redis and to some extent to php =D But do the php_redis-2.2.4-5.5-ts-vc11-x64.zip means that I should get a windows port of redis 2.2.4; and php 5.5.x? If so, is there a binary of the redis 2.2.4 (64bit) for windows? If I can avoid, Id rather not install Visual Studio and compile it |
@tcarlyle I think 2.2.4 is the version of php_redis, not Redis itself. So you should be fine with just PHP 5.5 and the latest Redis release for Windows. |
@rstarkov It didnt work here. I have here a 64bit WAMP with php 5.5.12 and apache 2.4.9, while running the 2.8.17 windows redis release. I've donwloaded the php_redis-2.2.5-5.5-ts-vc11-x64.zip, extracted the php_redis.dll to my ext folder and added it to my php.ini file ( by including "extension=php_redis.dll"). However, when I restart the WAMP, the WAMP monitor shows that there was a problem loading the php_redis.dll, and I can confirm that by a simple php test file and getting a " Class 'Redis' not found" error. Any idea of what could be wrong? I cant find anything on the php_error.log Btw, which set-up do you have over there? |
@tcarlyle IIS 7.5, PHP 5.5.17 (32-bit, NTS), Redis 2.8.17, php_redis 2.2.5 (32-bit, NTS). No specific tips about what could be wrong with your setup. It wasn't easy to find a php_redis that worked for me; most things I tried logged something about being unable to load php_redis to the PHP error log. One problem I recall was downloading the wrong php_redis zip by misreading all those 5's! |
@rstarkov Are you using the 64 binary of the redis distributed in https://github.com/MSOpenTech/redis/tree/2.8/bin/release or did you compile it yourself as a 32 bit binary? I just downloaded a WAMP 32 bit and the same php_redis as you, but using a 64 bit redis and no luck =S |
Try my PHP-builds: http://www.apachelounge.com/viewtopic.php?t=6123 |
hello,my php version is 5.4.3,How to do?tks |
my try some file,but doesn't work |
@char101 where is (buildconf.js)? |
Please provide update for PHP 7.4 |
The "php_redis.dll" for 5.3 doesn't work with php5.4 on windows.
The text was updated successfully, but these errors were encountered: