Issue #2207021 by Berdir: Remove legacy PHP 5.3 code from PhpMail plugin.
Issue #2206263 by sun: Drupal_is_cli() returns FALSE on PHP CLI.
Issue #2207219 by larowlan: Fatal: Call to a member function isSubclassOf() on a non-object in CommentManager.