应该是PHP版本有问题,homebrew-php的源码,你尝试安装一下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