Mojave 10.14.5 and homebrew PHP not working properly

Viewed 400

I'm trying to install PHP 7.(2|3) with Homebrew on Mojave 10.14.5 and I can't get it to work.

Fresh install of Mojave with only :

  • Google Chrome
  • Iterm
  • Zsh
  • Oh My Zsh

Right after Mojave is installed I run the following in my terminal :

  • Install Homebrew (command line from the official website)
  • brew install composer
  • brew install php
  • composer global require laravel/installer (composer is in the path)
  • laravel new blog

It ends up with a segmentation fault :

[1] 9310 segmentation fault laravel new blog

I tried to reboot, uninstall and reinstall PHP/Homebrew/Mojave several times. I always ends up with the same error.

Also tried with php@7.2 and php@7.1 and other packages like wp-cli, it's the same.

I'm desperate, please help.

EDIT WITH MORE INFO :

composer --version:

Composer version 1.8.6 2019-06-11 15:03:05

php -v:

PHP 7.1.26 (cli) (built: Apr 23 2019 10:38:28) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.1.26, Copyright (c) 1999-2018, by Zend Technologies

php -i: here

0 Answers
Related