WIP patch for josegonzalez/homebrew-php#591