Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.756.2.75
diff -u -p -r1.756.2.75 common.inc
--- includes/common.inc	16 Dec 2009 21:14:02 -0000	1.756.2.75
+++ includes/common.inc	3 Jan 2010 17:05:50 -0000
@@ -3549,6 +3549,7 @@ function drupal_write_record($table, &$o
  */
 function drupal_parse_info_file($filename) {
   $info = array();
+  $constants = get_defined_constants();
 
   if (!file_exists($filename)) {
     return $info;
@@ -3592,9 +3593,9 @@ function drupal_parse_info_file($filenam
         $parent = &$parent[$key];
       }
 
-      // Handle PHP constants
-      if (defined($value)) {
-        $value = constant($value);
+      // Handle PHP constants.
+      if (isset($constants[$value])) {
+        $value = $constants[$value];
       }
 
       // Insert actual value
