Bring $driver into scope.
Call bail_out() as a function.
Merge pull request #1 from klaude/php-fixes

Php fixes