Never Nop Tech

Never Nop Tech

創造意義,動手去做。

macOS PHP版本升級7.1

1.執行

curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0
export PATH=/usr/local/php5/bin:$PATH

3.在command上

php -v

PHP 7.1.19 (cli) (built: Jun 25 2018 09:39:54) ( NTS )

Copyright (c) 1997-2018 The PHP Group

Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies

with Zend OPcache v7.1.19, Copyright (c) 1999-2018, by Zend Technologies

with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans


補充:

遇到以下問題就是沒有升級到正確PHP版本

Parse error: parse error in

vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 242