Skip to content

Commit

Permalink
Merge pull request #35 from cjwilburn/master
Browse files Browse the repository at this point in the history
adding support for php@ 7.2
  • Loading branch information
philcook authored Nov 27, 2017
2 parents fb05b36 + baa7f89 commit c6b76b4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis/clean.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

for version in 53 54 55 56 70 71;
for version in 53 54 55 56 70 71 72;
do
brew unlink php$version;
done
4 changes: 3 additions & 1 deletion .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
brew unlink php70
brew install php71
brew unlink php71
brew install php72
brew unlink php72

echo 'Installed all PHP versions.'
fi
fi
2 changes: 1 addition & 1 deletion .travis/test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

error=0
for version in 53 54 55 56 70 71
for version in 53 54 55 56 70 71 72
do
. `echo $(dirname $0)"/../phpswitch.sh"` $version -s > /dev/null
switched=$(php -v | grep -e '^PHP' | cut -d' ' -f2 | cut -d. -f1,2 | sed 's/\.//')
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ If you support multiple products/projects that are built using either brand new
Caveats
-------

For users of OSX only who have installed PHP via [Homebrew] and for PHP version 5.3, 5.4, 5.5, 5.6, 7.0 and 7.1 only.
For users of OSX only who have installed PHP via [Homebrew] and for PHP version 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, and 7.2 only.

Your Apache config must have native osx PHP module commented out.
```sh
Expand All @@ -23,12 +23,13 @@ LoadModule php5_module /usr/local/opt/php55/libexec/apache2/libphp5.so
LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so
LoadModule php7_module /usr/local/opt/php70/libexec/apache2/libphp7.so
LoadModule php7_module /usr/local/opt/php71/libexec/apache2/libphp7.so
LoadModule php7_module /usr/local/opt/php72/libexec/apache2/libphp7.so
```

Version
----

1.6
1.7

Installation
--------------
Expand Down
4 changes: 2 additions & 2 deletions phpswitch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# Twitter: @p_cook
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')

brew_array=("53","54","55","56","70","71")
php_array=("php53" "php54" "php55" "php56" "php70" "php71")
brew_array=("53","54","55","56","70","71","72")
php_array=("php53" "php54" "php55" "php56" "php70" "php71" "php72")
php_installed_array=()
php_version="php$1"
php_opt_path="$brew_prefix\/opt\/"
Expand Down

0 comments on commit c6b76b4

Please sign in to comment.