Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Merge [5054].

  • Loading branch information...
commit 631ef81ae6431d4de55ebaa4f15245823d7d4d23 1 parent f8adcf7
@sebastianbergmann authored
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,
Please sign in to comment.
Something went wrong with that request. Please try again.