laravel/laravel — pull request #1212 by franzliedke (2012-09-12 11:57:46+00:00)
Title: Fix CLI mode detection for some shared hosts.

This fixes #690.

[This PHP doc comment](http://www.php.net/manual/en/features.commandline.php#105043) explains the solution in great detail (and very verbose code), so this sounds sensible.