Browse files

- Merge [5054].

  • Loading branch information...
1 parent f8adcf7 commit 631ef81ae6431d4de55ebaa4f15245823d7d4d23 @sebastianbergmann committed Jul 31, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 PHPUnit/Util/GlobalState.php
View
6 PHPUnit/Util/GlobalState.php
@@ -219,8 +219,12 @@ public static function getGlobalsAsString()
}
}
+ $blacklist = $superGlobalArrays;
+ $blacklist[] = 'GLOBALS';
+ $blacklist[] = '_PEAR_Config_instance';
+
foreach (array_keys($GLOBALS) as $key) {
- if ($key != 'GLOBALS' && !in_array($key, $superGlobalArrays)) {
+ if (!in_array($key, $blacklist)) {
$result .= sprintf(
'$GLOBALS[\'%s\'] = %s;' . "\n",
$key,

0 comments on commit 631ef81

Please sign in to comment.