Skip to content

Instantly share code, notes, and snippets.

@bubba-h57
Created February 7, 2019 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bubba-h57/25e91120c4f62e1deb5dc3ef206dd094 to your computer and use it in GitHub Desktop.
Save bubba-h57/25e91120c4f62e1deb5dc3ef206dd094 to your computer and use it in GitHub Desktop.
Build Similar PHP 7.2 & 7.3 Debug/Pthreaded Builds on the same system using phpbrew
#!/usr/bin/env bash
brew install openssl
brew install gd
brew install imagemagick
brew install libmemcached
brew services start memcached
phpbrew install --name 7.3-debug php-7.3 \
+zts \
+debug \
+ctype \
+curl \
+dom \
+exif \
+fileinfo \
+filter \
+gd \
+hash \
+iconv \
+json \
+mbstring \
+openssl \
+pcntl \
+pcre \
+pdo \
+mysql \
+pgsql \
+sqlite \
+posix \
+readline \
+session \
+soap \
+tokenizer \
+xml \
+opcache \
+zip \
+zlib \
-- \
--with-gd=shared
phpbrew switch 7.3-debug
phpbrew ext install github:krakjoe/pthreads master
phpbrew ext install apcu
phpbrew ext install igbinary
phpbrew ext install redis
phpbrew ext install imagick
phpbrew ext install memcached
phpbrew install --name 7.2-debug php-7.2 \
+zts \
+debug \
+ctype \
+curl \
+dom \
+exif \
+fileinfo \
+filter \
+gd \
+hash \
+iconv \
+json \
+mbstring \
+openssl \
+pcntl \
+pcre \
+pdo \
+mysql \
+pgsql \
+sqlite \
+posix \
+readline \
+session \
+soap \
+tokenizer \
+xml \
+opcache \
+zip \
+zlib \
-- \
--with-gd=shared
phpbrew switch 7.2-debug
phpbrew ext install github:krakjoe/pthreads master
phpbrew ext install apcu
phpbrew ext install igbinary
phpbrew ext install redis
phpbrew ext install imagick
phpbrew ext install memcached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment