pickle
pickle copied to clipboard
fix issue#253 window install failed
Fixes https://github.com/FriendsOfPHP/pickle/issues/253
- Remove undefined method Binary::setInput and DependencyLib::setInput
- Support Additional .ini Path
- Support deplister.exe not in Path
- Implementing PHPUnzipper function exttactTo
box fails at compiling your fix to a phar. please post a release to your fork.
This PR fixed the issue I'm having on Windows. Please merge this PR as soon as possible.
box fails at compiling your fix to a phar. please post a release to your fork.
I managed to build .phar file from this PR and install redis
PHP extension myself. As listened on phpredis INSTALL.md. Here the procedure how I build this:
- get box installed.
- The box2 version listed on README.md abandoned.
- On my side, I get it installed as a composer global package.
-
git
clone the source repo, thencd pickle
- install required dependencies:
composer install --no-dev --optimize-autoloader
- On Windows's cmd, it might fails because it requires
patch.exe
. I had to switch to Git'sbash.exe
shell.
- On Windows's cmd, it might fails because it requires
- execute
box build
The binary is available under bin
directory.
This is the output on how I install redis.
> bin\pickle.bat install redis
+---------------+----------------------+
| php Path | C:\xampp\php\php.exe |
| php Version | 7.4.33 |
| Compiler | vc15 |
| Architecture | x64 |
| Thread safety | yes |
| Extension dir | C:\xampp\php\ext |
| php.ini | C:\xampp\php\php.ini |
+---------------+----------------------+
downloading https://windows.php.net/downloads/pecl/releases/redis/5.3.7/php_redis-5.3.7-7.4-ts-vc15-x64.zip
667099/667099 [============================] 100%Extracting archives...
copying C:\xampp\tmp\pickle-redis\php_redis.dll to C:\xampp\php\ext\php_redis.dll