The {code...} is as follows:
brew install php56-xhprof==> Installing php56-xhprof from homebrew/homebrew-php==> Downloading https://github.com/facebook/xhprof/archive/254eb24dcfa763c76c57b472093ebc4b81af2b7d.tar.gz######################################################################## 100.0%==> PatchingError: Unable to guess PHP branch for Formulary::Formulae::Php56Xhprof
Reply content:
As follows:
brew install php56-xhprof==> Installing php56-xhprof from homebrew/homebrew-php==> Downloading https://github.com/facebook/xhprof/archive/254eb24dcfa763c76c57b472093ebc4b81af2b7d.tar.gz######################################################################## 100.0%==> PatchingError: Unable to guess PHP branch for Formulary::Formulae::Php56Xhprof
It should be because of a problem with the PHP version. The source code of homebrew-php, you try to install the version 5.3 +.
def php_branch class_name = self.class.name.split("::").last matches = /^Php5([3-9]+)/.match(class_name) if matches "5." + matches[1] else raise "Unable to guess PHP branch for #{class_name}" end end