WIP patch for josegonzalez/homebrew-php#591 (fixes libedit/readline error)