Recently Homebrew reorganised some PHP stuff. The old methods to install PHP and extensions via Homebrow don't work anymore. Andy Grunwald wrote a blogpost on how to migrate.
With Homebrew 1.5.0 the tap homebrew/php got deprecated. They migrated it to homebrew/core, but this is changing the installation process completely: