diff --git a/includes/common.inc b/includes/common.inc
index 20cc82b..e7af552 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -7366,7 +7366,6 @@ function drupal_parse_info_file($filename) {
  */
 function drupal_parse_info_format($data) {
   $info = array();
-  $constants = get_defined_constants();
 
   if (preg_match_all('
     @^\s*                           # Start at the beginning of a line, ignoring leading whitespace
@@ -7406,8 +7405,8 @@ function drupal_parse_info_format($data) {
       }
 
       // Handle PHP constants.
-      if (isset($constants[$value])) {
-        $value = $constants[$value];
+      if (defined($value)) {
+        $value = constant($value);
       }
 
       // Insert actual value.
