Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

avoid invalid assumption that the Superglobals are always arrays

  • Loading branch information...
commit a8e5396fda40c1994190691271fe81bce1c8f0c6 1 parent 6e92411
@scoates scoates authored committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  PHPUnit/Util/GlobalState.php
View
1  PHPUnit/Util/GlobalState.php
@@ -163,6 +163,7 @@ protected static function backupSuperGlobalArray($superGlobalArray)
protected static function restoreSuperGlobalArray($superGlobalArray)
{
if (isset($GLOBALS[$superGlobalArray]) &&
+ is_array($GLOBALS[$superGlobalArray]) &&
isset(self::$globals[$superGlobalArray])) {
$keys = array_keys(
array_merge(
Please sign in to comment.
Something went wrong with that request. Please try again.