Index: commands/core/core.drush.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/commands/core/core.drush.inc,v
retrieving revision 1.29
diff -u -u -p -r1.29 core.drush.inc
--- commands/core/core.drush.inc	27 May 2009 01:01:17 -0000	1.29
+++ commands/core/core.drush.inc	2 Jun 2009 22:38:33 -0000
@@ -229,7 +229,11 @@ function core_drush_help($section) {
 // TODO: consolidate with SQL commands?
 function _core_site_credentials() {
   $phase = drush_get_context('DRUSH_BOOTSTRAP_PHASE');
-  $credentials = sprintf("  %-18s: %s\n", 'PHP configuration', php_ini_loaded_file());
+  if (function_exists('php_ini_loaded_file')) {
+    // Function available on PHP >= 5.2.4, but we use it if available to help
+    // users figure out their php.ini issues.
+    $credentials = sprintf("  %-18s: %s\n", 'PHP configuration', php_ini_loaded_file());
+  }
   if ($drupal_root = drush_get_context('DRUSH_DRUPAL_ROOT')) {
     $credentials .= sprintf("  %-18s: %s\n", 'Drupal Root', $drupal_root);
     $credentials .= sprintf("  %-18s: %s\n", 'Drupal version', drush_drupal_version());
