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

Skip to content

Commit 99532fc

Browse files
authored
Merge pull request #54 from chrisdeeming/patch-1
Update switcher to support PHP 7.3
2 parents 30bfdc2 + 41b2b51 commit 99532fc

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.travis/install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
1010
brew install [email protected]
1111
brew unlink [email protected]
1212
brew install [email protected]
13-
brew link --overwrite [email protected]
1413
brew unlink [email protected]
14+
brew install [email protected]
15+
brew link --overwrite [email protected]
16+
brew unlink [email protected]
1517

1618
echo 'Installed all PHP versions.'
1719
fi

.travis/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
error=0
4-
for version in '5.6' '7.0' '7.1' '7.2'; do
4+
for version in '5.6' '7.0' '7.1' '7.2' '7.3'; do
55
. `echo $(dirname $0)"/../phpswitch.sh"` $version -s > /dev/null
66
switched=$(php -v | grep -e '^PHP' | cut -d' ' -f2 | cut -d. -f1,2)
77
if [ "$version" != "$switched" ]; then

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ If you support multiple products/projects that are built using either brand new
88
Caveats
99
-------
1010

11-
For users of OSX only who have installed PHP via [Homebrew] and for PHP version 5.6, 7.0, 7.1 and 7.2 only.
11+
For users of OSX only who have installed PHP via [Homebrew] and for PHP version 5.6, 7.0, 7.1, 7.2 and 7.3 only.
1212

1313
Your Apache config must have native osx PHP module commented out.
1414
```sh
@@ -21,6 +21,7 @@ Brew PHP Switcher will automatically add the [Homebrew]'s PHP module location in
2121
#LoadModule php7_module /usr/local/opt/[email protected]/lib/httpd/modules/libphp7.so
2222
#LoadModule php7_module /usr/local/opt/[email protected]/lib/httpd/modules/libphp7.so
2323
#LoadModule php7_module /usr/local/opt/[email protected]/lib/httpd/modules/libphp7.so
24+
#LoadModule php7_module /usr/local/opt/[email protected]/lib/httpd/modules/libphp7.so
2425
```
2526

2627
Version
@@ -34,7 +35,7 @@ Installation
3435
brew install brew-php-switcher
3536
```
3637

37-
Where **5.6** exists, please replace with syntax of **5.6**, **7.0**, **7.1**, or **7.2** depending on which version is required.
38+
Where **5.6** exists, please replace with syntax of **5.6**, **7.0**, **7.1**, **7.2**, or **7.3** depending on which version is required.
3839
```sh
3940
brew-php-switcher 5.6
4041
```

phpswitch.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ osx_version=$((${osx_major_version} * 10000 + ${osx_minor_version} * 100 + ${osx
99

1010
brew_prefix=$(brew --prefix | sed 's#/#\\\/#g')
1111

12-
brew_array=("5.6","7.0","7.1","7.2")
13-
14-
12+
brew_array=("5.6","7.0","7.1","7.2","7.3")
13+
14+
1515
php_installed_array=()
1616
php_version="php@$1"
1717
php_opt_path="$brew_prefix\/opt\/"

0 commit comments

Comments
 (0)